mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Cleanup missing includes, stale includes, and a few printf format
inconsistancies.
This commit is contained in:
parent
d6a8296aed
commit
f41f949d09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52445
@ -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],
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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);
|
||||
|
@ -52,8 +52,8 @@
|
||||
#include <errno.h>
|
||||
#include <err.h>
|
||||
|
||||
#include <netgraph.h>
|
||||
#include <netgraph/ng_socket.h>
|
||||
#include <netgraph/ng_message.h>
|
||||
|
||||
/* Command descriptors */
|
||||
struct ngcmd {
|
||||
|
@ -51,7 +51,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/select.h>
|
||||
|
||||
#include <netgraph.h>
|
||||
#include <netgraph/ng_message.h>
|
||||
|
||||
#define DEFAULT_HOOKNAME "debug"
|
||||
#define NG_SOCK_HOOK_NAME "hook"
|
||||
|
Loading…
Reference in New Issue
Block a user