if(i == 0) FILL_CHANNELMASK(*flags); else if((i < 1 || i > MAX_CHANNELS) && (i < -MAX_CHANNELS || i > -1)) { ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "%s must be between 1 and %d, or between -1 and -%d, or 0" NLS, name, MAX_CHANNELS, MAX_CHANNELS); return -1; } else { if(i > 0) SET_CHANNELMASK(*flags, i - 1); else UNSET_CHANNELMASK(*flags, -i - 1); } return 0;
if (i == 0) FILL_CHANNELMASK(*flags); else if ((i < 1 || i > MAX_CHANNELS) && (i < -MAX_CHANNELS || i > -1)) { ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "%s must be between 1 and %d, or between -1 and -%d, or 0", name, MAX_CHANNELS, MAX_CHANNELS); return -1; } else { if (i > 0) SET_CHANNELMASK(*flags, i - 1); else UNSET_CHANNELMASK(*flags, -i - 1); } return 0;
static int set_channel_flag(ChannelBitMask *flags, int32 i, char *name){    if(i == 0)	FILL_CHANNELMASK(*flags);    else if((i < 1 || i > MAX_CHANNELS) && (i < -MAX_CHANNELS || i > -1))    {	ctl->cmsg(CMSG_ERROR, VERB_NORMAL,		"%s must be between 1 and %d, or between -1 and -%d, or 0"		NLS, name, MAX_CHANNELS, MAX_CHANNELS);	return -1;    }    else    {	if(i > 0)	    SET_CHANNELMASK(*flags, i - 1);	else	    UNSET_CHANNELMASK(*flags, -i - 1);    }    return 0;}