summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillert <>1997-08-24 21:25:48 +0000
committermillert <>1997-08-24 21:25:48 +0000
commit21a4052e0e4057b8bf8c60e9a0061cb78cdb049d (patch)
tree397c60b96e381461168bf9caebd77bb548424e6c
parentd1992b87de38ede6e6dd8ba853ae384f5fbad27d (diff)
downloadopenbsd-21a4052e0e4057b8bf8c60e9a0061cb78cdb049d.tar.gz
openbsd-21a4052e0e4057b8bf8c60e9a0061cb78cdb049d.tar.bz2
openbsd-21a4052e0e4057b8bf8c60e9a0061cb78cdb049d.zip
Fix compiler warnings.
-rw-r--r--src/lib/libc/net/ns_ntoa.c4
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 ec03ba0dee..c33f710966 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)
35static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.6 1997/07/21 20:31:06 deraadt Exp $"; 35static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.7 1997/08/24 21:25:48 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++;