diff options
author | dillon <dillon@FreeBSD.org> | 1999-10-23 17:45:11 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-10-23 17:45:11 +0000 |
commit | 405fc1165a74f692670f70b4749507b6a98f08ec (patch) | |
tree | 2d6552bb27e372ecdc48de66b90687e26045baa9 /usr.bin | |
parent | b6ebb73004de327dc34a9cb5b12dd55f933a8e20 (diff) | |
download | FreeBSD-src-405fc1165a74f692670f70b4749507b6a98f08ec.zip FreeBSD-src-405fc1165a74f692670f70b4749507b6a98f08ec.tar.gz |
Cleanup missing includes, stale includes, and a few printf format
inconsistancies.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/if.c | 2 | ||||
-rw-r--r-- | usr.bin/netstat/netgraph.c | 1 | ||||
-rw-r--r-- | usr.bin/netstat/route.c | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 32a8eaa..e1592ba 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -98,7 +98,7 @@ bdg_stats(u_long dummy, char *name) /* print bridge statistics */ "Name In Out Forward Drop Bcast Mcast Local Unknown\n"); for (i = 0 ; i < 16 ; i++) { if (s.s[i].name[0]) - printf("%-6s %9d%9d%9d%9d%9d%9d%9d%9d\n", + printf("%-6s %9ld%9ld%9ld%9ld%9ld%9ld%9ld%9ld\n", s.s[i].name, s.s[i].p_in[(int)BDG_IN], s.s[i].p_in[(int)BDG_OUT], diff --git a/usr.bin/netstat/netgraph.c b/usr.bin/netstat/netgraph.c index 33bc779..e43fb7b 100644 --- a/usr.bin/netstat/netgraph.c +++ b/usr.bin/netstat/netgraph.c @@ -57,7 +57,6 @@ static const char rcsid[] = #include <stdio.h> #include <string.h> #include <unistd.h> -#include <netgraph.h> #include <err.h> #include "netstat.h" diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 158b3ff..0cdbdf8 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -539,7 +539,7 @@ p_rtentry(rt) p_sockaddr(&addr.u_sa, &mask.u_sa, rt->rt_flags, WID_DST); p_sockaddr(kgetsa(rt->rt_gateway), NULL, RTF_HOST, WID_GW); p_flags(rt->rt_flags, "%-6.6s "); - printf("%6d %8ld ", rt->rt_refcnt, rt->rt_use); + printf("%6ld %8ld ", rt->rt_refcnt, rt->rt_use); if (rt->rt_ifp) { if (rt->rt_ifp != lastif) { kget(rt->rt_ifp, ifnet); |