FreeBSD/contrib/ntp/ntpdc/ntpdc_ops.c
/* Convert a refid & stratum (in host order) to a string */
Convert a refid & stratum (in host order) to a string
Convert a refid & stratum ( in host order ) to a string
static char *
refid_string(
	u_int32 refid,
	int stratum
	)
{
	if (stratum <= 1) {
		static char junk[5];
		junk[4] = 0;
		memcpy(junk, &refid, 4);
		return junk;
	}
	return numtoa(refid);
}
static char * refid_string ( u_int32 refid , int stratum ) { if ( stratum <= 1 ) { static char junk [ 5 ] ; junk [ 4 ] = 0 ; memcpy ( junk , & refid , 4 ) ; return junk ; } return numtoa ( refid ) ; }
Convert a refid & stratum (in host order) to a string
Convert a refid & stratum ( in host order ) to a string