From 5c1e86ebb424294fcfae39ae7ff1efcf8808086d Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 2 Jun 1996 23:19:12 +0000 Subject: Code cleanup: remove unused variables, use correct *printf format specifiers (some unsigned values were printed as signed, some longs were printed as ints), and place parentheses around assignments in if statements. --- usr.bin/netstat/ipx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/netstat/ipx.c') diff --git a/usr.bin/netstat/ipx.c b/usr.bin/netstat/ipx.c index 2355d50..4f47d98 100644 --- a/usr.bin/netstat/ipx.c +++ b/usr.bin/netstat/ipx.c @@ -132,8 +132,8 @@ ipxprotopr(off, name) first = 0; } if (Aflag) - printf("%8x ", ppcb); - printf("%-5.5s %6d %6d ", name, sockb.so_rcv.sb_cc, + printf("%8lx ", ppcb); + printf("%-5.5s %6ld %6ld ", name, sockb.so_rcv.sb_cc, sockb.so_snd.sb_cc); printf(Aflag?" %-18.18s":" %-22.22s", ipx_prpr(&ipxpcb.ipxp_laddr)); printf(Aflag?" %-18.18s":" %-22.22s", ipx_prpr(&ipxpcb.ipxp_faddr)); @@ -149,7 +149,7 @@ ipxprotopr(off, name) } } #define ANY(x,y,z) \ - ((x) ? printf("\t%d %s%s%s -- %s\n",x,y,plural(x),z,"x") : 0) + ((x) ? printf("\t%ld %s%s%s -- %s\n",(long)x,y,plural(x),z,"x") : 0) /* * Dump SPX statistics structure. -- cgit v1.1