summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/if.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-06-29 20:52:39 +0000
committermillert <millert@openbsd.org>1997-06-29 20:52:39 +0000
commita503419f5a94e5a947a1dea27733da18de1aef3b (patch)
tree6b2d1ed3ef8d63bd9c4006aceb2557a1b43650eb /usr.bin/netstat/if.c
parentMostly clean -Wall + 64bit issues. (diff)
downloadwireguard-openbsd-a503419f5a94e5a947a1dea27733da18de1aef3b.tar.xz
wireguard-openbsd-a503419f5a94e5a947a1dea27733da18de1aef3b.zip
Make fields line up nicely for 64-bit addresses. Should probably #if
some things based on sizeof(long).
Diffstat (limited to 'usr.bin/netstat/if.c')
-rw-r--r--usr.bin/netstat/if.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index 9c53caa5f31..2a3589035b3 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.11 1997/06/29 20:17:58 millert Exp $ */
+/* $OpenBSD: if.c,v 1.12 1997/06/29 20:52:39 millert Exp $ */
/* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
#else
-static char *rcsid = "$OpenBSD: if.c,v 1.11 1997/06/29 20:17:58 millert Exp $";
+static char *rcsid = "$OpenBSD: if.c,v 1.12 1997/06/29 20:52:39 millert Exp $";
#endif
#endif /* not lint */
@@ -200,7 +200,7 @@ intpr(interval, ifnetaddr)
char netnum[8];
*(union ipx_net *) &net = sipx->sipx_addr.ipx_net;
- sprintf(netnum, "%lxH", ntohl(net));
+ sprintf(netnum, "%xH", ntohl(net));
upHex(netnum);
printf("ipx:%-8s", netnum);
printf("%-17s ",
@@ -215,7 +215,7 @@ intpr(interval, ifnetaddr)
char netnum[8];
*(union ns_net *) &net = sns->sns_addr.x_net;
- sprintf(netnum, "%lxH", ntohl(net));
+ sprintf(netnum, "%xH", ntohl(net));
upHex(netnum);
printf("ns:%-8s ", netnum);
printf("%-17s ",