FreeBSD/contrib/ntp/ntpq/ntpq-subs.c
/*
 * clocklist - send a clock variables request with the variables on the list
 */
send a clock variables request with the variables on the list
send a clock variables request with the variables on the list
static void
clocklist(
	struct parse *pcmd,
	FILE *fp
	)
{
	associd_t associd;
	if (pcmd->nargs == 0) {
		associd = 0;
	} else {
		if (pcmd->argval[0].uval == 0)
			associd = 0;
		else if ((associd = checkassocid(pcmd->argval[0].uval)) == 0)
			return;
	}
	dolist(g_varlist, associd, CTL_OP_READCLOCK, TYPE_CLOCK, fp);
}
static void clocklist ( struct parse * pcmd , FILE * fp ) { associd_t associd ; if ( pcmd -> nargs == 0 ) { associd = 0 ; } else { if ( pcmd -> argval [ 0 ] . uval == 0 ) associd = 0 ; else if ( ( associd = checkassocid ( pcmd -> argval [ 0 ] . uval ) ) == 0 ) return ; } dolist ( g_varlist , associd , CTL_OP_READCLOCK , TYPE_CLOCK , fp ) ; }
clocklist - send a clock variables request with the variables on the list
clocklist - send a clock variables request with the variables on the list
/* HMS: uval? */