FreeBSD/contrib/ntp/ntpq/ntpq.c
/*
 * authenticate - always authenticate requests to this host
 */
always authenticate requests to this host
always authenticate requests to this host
static void
authenticate(
	struct parse *pcmd,
	FILE *fp
	)
{
	if (pcmd->nargs == 0) {
		if (always_auth) {
			(void) fprintf(fp,
				       "authenticated requests being sent\n");
		} else
		    (void) fprintf(fp,
				   "unauthenticated requests being sent\n");
	} else {
		if (STREQ(pcmd->argval[0].string, "yes")) {
			always_auth = 1;
		} else if (STREQ(pcmd->argval[0].string, "no")) {
			always_auth = 0;
		} else
		    (void)fprintf(stderr, "What?\n");
	}
}
static void authenticate ( struct parse * pcmd , FILE * fp ) { if ( pcmd -> nargs == 0 ) { if ( always_auth ) { ( void ) fprintf ( fp , " \n " ) ; } else ( void ) fprintf ( fp , " \n " ) ; } else { if ( STREQ ( pcmd -> argval [ 0 ] . string , " " ) ) { always_auth = 1 ; } else if ( STREQ ( pcmd -> argval [ 0 ] . string , " " ) ) { always_auth = 0 ; } else ( void ) fprintf ( stderr , " \n " ) ; } }
authenticate - always authenticate requests to this host
authenticate - always authenticate requests to this host