diff options
author | millert <> | 1997-07-09 01:08:53 +0000 |
---|---|---|
committer | millert <> | 1997-07-09 01:08:53 +0000 |
commit | 876d3a1be4aa406672cc674a171f26878319d505 (patch) | |
tree | 72a738d612791a6e60d74a474bca3bbbcac4828c /src/lib/libc/net/ns_ntoa.c | |
parent | fd3592b18f24103bfc82412a8950e5f06e549ff1 (diff) | |
download | openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.gz openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.bz2 openbsd-876d3a1be4aa406672cc674a171f26878319d505.zip |
Clean up some -Wall flowers.
Diffstat (limited to 'src/lib/libc/net/ns_ntoa.c')
-rw-r--r-- | src/lib/libc/net/ns_ntoa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/ns_ntoa.c b/src/lib/libc/net/ns_ntoa.c index d65d6d84d8..472675e066 100644 --- a/src/lib/libc/net/ns_ntoa.c +++ b/src/lib/libc/net/ns_ntoa.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.4 1997/04/05 21:13:15 millert Exp $"; | 35 | static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.5 1997/07/09 01:08:43 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <sys/param.h> | 38 | #include <sys/param.h> |
@@ -54,7 +54,7 @@ ns_ntoa(addr) | |||
54 | u_char *uplim = up + 6; | 54 | u_char *uplim = up + 6; |
55 | 55 | ||
56 | net.net_e = addr.x_net; | 56 | net.net_e = addr.x_net; |
57 | sprintf(obuf, "%lx", ntohl(net.long_e)); | 57 | sprintf(obuf, "%x", ntohl(net.long_e)); |
58 | cp = spectHex(obuf); | 58 | cp = spectHex(obuf); |
59 | cp2 = cp + 1; | 59 | cp2 = cp + 1; |
60 | while (*up==0 && up < uplim) up++; | 60 | while (*up==0 && up < uplim) up++; |