diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1994-09-29 23:04:24 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-09-29 23:04:24 +0000 |
commit | daa35edbd086b27357d8f048ede7c84dcc520748 (patch) | |
tree | 8dd520f3dfb7df4f73618d886e20c1154f3e5e5f /usr.sbin/xntpd/lib/refnumtoa.c | |
parent | d2d2eed18837c57f97405aa88134457f8d97640d (diff) |
Notes
Diffstat (limited to 'usr.sbin/xntpd/lib/refnumtoa.c')
-rw-r--r-- | usr.sbin/xntpd/lib/refnumtoa.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/usr.sbin/xntpd/lib/refnumtoa.c b/usr.sbin/xntpd/lib/refnumtoa.c index 31175d9f877ba..b46fdd8cb350c 100644 --- a/usr.sbin/xntpd/lib/refnumtoa.c +++ b/usr.sbin/xntpd/lib/refnumtoa.c @@ -1,4 +1,4 @@ -/* refnumtoa.c,v 3.1 1993/07/06 01:08:44 jbj Exp +/* * refnumtoa - return asciized refclock addresses stored in local array space */ #include <stdio.h> @@ -9,9 +9,9 @@ char * refnumtoa(num) - U_LONG num; + u_long num; { - register U_LONG netnum; + register u_long netnum; register char *buf; register const char *rclock; @@ -19,16 +19,12 @@ refnumtoa(num) LIB_GETBUF(buf); - rclock = clockname((int)((netnum>>8)&0xff)); + rclock = clockname((int)((netnum >> 8) & 0xff)); if (rclock != NULL) - { - (void) sprintf(buf, "%s(%d)", clockname((int)((netnum>>8)&0xff)), netnum&0xff); - } + (void)sprintf(buf, "%s(%lu)", rclock, netnum & 0xff); else - { - (void) sprintf(buf, "REFCLK(%d,%d)", (netnum>>8)&0xff, netnum&0xff); - } - + (void)sprintf(buf, "REFCLK(%lu,%lu)", + (netnum >> 8) & 0xff, netnum&0xff); return buf; } |