diff options
author | alex <alex@FreeBSD.org> | 1996-06-02 23:19:12 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1996-06-02 23:19:12 +0000 |
commit | 5c1e86ebb424294fcfae39ae7ff1efcf8808086d (patch) | |
tree | a562c2f6b0b887d7adcf7d867066326bca326e2e /usr.bin/netstat/ipx.c | |
parent | 256d4f51af66d46915508a783071de1a6b139187 (diff) | |
download | FreeBSD-src-5c1e86ebb424294fcfae39ae7ff1efcf8808086d.zip FreeBSD-src-5c1e86ebb424294fcfae39ae7ff1efcf8808086d.tar.gz |
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.
Diffstat (limited to 'usr.bin/netstat/ipx.c')
-rw-r--r-- | usr.bin/netstat/ipx.c | 6 |
1 files changed, 3 insertions, 3 deletions
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. |