diff options
Diffstat (limited to 'usr.sbin/xntpd/lib/numtoa.c')
-rw-r--r-- | usr.sbin/xntpd/lib/numtoa.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/usr.sbin/xntpd/lib/numtoa.c b/usr.sbin/xntpd/lib/numtoa.c deleted file mode 100644 index 957e3c1..0000000 --- a/usr.sbin/xntpd/lib/numtoa.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * numtoa - return asciized network numbers store in local array space - */ -#include <stdio.h> - -#include "ntp_fp.h" -#include "lib_strbuf.h" -#include "ntp_stdlib.h" - -char * -numtoa(num) - u_int32_t num; -{ - register u_int32_t netnum; - register char *buf; - - netnum = ntohl(num); - LIB_GETBUF(buf); - (void) sprintf(buf, "%lu.%lu.%lu.%lu", (netnum >> 24) & 0xff, - (netnum >> 16) & 0xff, (netnum >> 8) & 0xff, netnum & 0xff); - return buf; -} |