FreeBSD/contrib/ntp/ntpq/ntpq-subs.c
/*
 * checkassocid - return the association ID, checking to see if it is valid
 */
return the association ID, checking to see if it is valid
return the association ID checking to see if it is valid
static associd_t
checkassocid(
	u_int32 value
	)
{
	associd_t	associd;
	u_long		ulvalue;
	associd = (associd_t)value;
	if (0 == associd || value != associd) {
		ulvalue = value;
		fprintf(stderr,
			"***Invalid association ID %lu specified\n",
			ulvalue);
		return 0;
	}
	return associd;
}
static associd_t checkassocid ( u_int32 value ) { associd_t associd ; u_long ulvalue ; associd = ( associd_t ) value ; if ( 0 == associd || value != associd ) { ulvalue = value ; fprintf ( stderr , " \n " , ulvalue ) ; return 0 ; } return associd ; }
checkassocid - return the association ID, checking to see if it is valid
checkassocid - return the association ID checking to see if it is valid