FreeBSD/contrib/ntp/ntpdc/ntpdc_ops.c
/*
 * check1item - check to make sure we have exactly one item
 */
check to make sure we have exactly one item
check to make sure we have exactly one item
static int
check1item(
	size_t items,
	FILE *fp
	)
{
	if (items == 0) {
		(void) fprintf(fp, "No data returned in response to query\n");
		return 0;
	}
	if (items > 1) {
		(void) fprintf(fp, "Expected one item in response, got %lu\n",
			       (u_long)items);
		return 0;
	}
	return 1;
}
static int check1item ( size_t items , FILE * fp ) { if ( items == 0 ) { ( void ) fprintf ( fp , " \n " ) ; return 0 ; } if ( items > 1 ) { ( void ) fprintf ( fp , " \n " , ( u_long ) items ) ; return 0 ; } return 1 ; }
check1item - check to make sure we have exactly one item
check1item - check to make sure we have exactly one item