static int has_poll_action(int act)
{
	int i;

	if (!nactions)
		return 1;	/* all actions enabled */
	for (i = 0; i < nactions; i++)
		if (actions[i] == act)
			return 1;
	return 0;
}
static int has_poll_action(int act)
{
	int i;

	if (!nactions)
		return 1;	 
	for (i = 0; i < nactions; i++)
		if (actions[i] == act)
			return 1;
	return 0;
}