summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2008-09-01 15:04:38 +0000
committerobrien <obrien@FreeBSD.org>2008-09-01 15:04:38 +0000
commit5dc67fc4b3450e41c41b69ce34725367c0c87228 (patch)
treef9554f587676e39ce6830bf1df3028db0757bf48 /usr.bin
parentf50b650b5713b613ceda15e42eafe1755ae6e31e (diff)
downloadFreeBSD-src-5dc67fc4b3450e41c41b69ce34725367c0c87228.zip
FreeBSD-src-5dc67fc4b3450e41c41b69ce34725367c0c87228.tar.gz
Minimize changes CURRENT<->releng7.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/inet.c9
-rw-r--r--usr.bin/netstat/main.c2
-rw-r--r--usr.bin/netstat/netstat.h2
-rw-r--r--usr.bin/netstat/route.c4
4 files changed, 8 insertions, 9 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 3978f46..ba79cec 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -415,8 +415,8 @@ protopr(u_long off, const char *name, int af1, int proto)
if (xflag)
printf("%-6.6s %-6.6s %-6.6s %-6.6s %-6.6s %-6.6s %-6.6s %-6.6s %-6.6s %-6.6s %-6.6s %-6.6s %s\n",
"R-MBUF", "S-MBUF", "R-CLUS", "S-CLUS",
- "R-HIWA", "S-HIWA", "R-LOWA", "S-LOWA",
- "R-BCNT", "S-BCNT", "R-BMAX", "S-BMAX",
+ "R-HIWA", "S-HIWA", "R-LOWA", "S-LOWA",
+ "R-BCNT", "S-BCNT", "R-BMAX", "S-BMAX",
"(state)");
else
printf("(state)\n");
@@ -446,8 +446,7 @@ protopr(u_long off, const char *name, int af1, int proto)
so->so_incqlen, so->so_qlimit);
printf("%-14.14s ", buf1);
} else {
- printf("%6u %6u ",
- so->so_rcv.sb_cc, so->so_snd.sb_cc);
+ printf("%6u %6u ", so->so_rcv.sb_cc, so->so_snd.sb_cc);
}
if (numeric_port) {
if (inp->inp_vflag & INP_IPV4) {
@@ -505,7 +504,7 @@ protopr(u_long off, const char *name, int af1, int proto)
}
if (xflag) {
if (Lflag)
- printf("%21s %6u %6u %6u %6u %6u %6u %6u %6u %6u %6u %6u %6u ",
+ printf("%21s %6u %6u %6u %6u %6u %6u %6u %6u %6u %6u %6u %6u ",
" ",
so->so_rcv.sb_mcnt, so->so_snd.sb_mcnt,
so->so_rcv.sb_ccnt, so->so_snd.sb_ccnt,
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 51a3260..3b130b2 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -331,7 +331,7 @@ int rflag; /* show routing tables (or routing stats) */
int sflag; /* show protocol statistics */
int tflag; /* show i/f watchdog timers */
int Wflag; /* wide display */
-int xflag; /* extra information, includes all socket buffer info */
+int xflag; /* extra information, includes all socket buffer info */
int zflag; /* zero stats */
int interval; /* repeat interval for i/f stats */
diff --git a/usr.bin/netstat/netstat.h b/usr.bin/netstat/netstat.h
index e84e737..0b7f439 100644
--- a/usr.bin/netstat/netstat.h
+++ b/usr.bin/netstat/netstat.h
@@ -51,7 +51,7 @@ extern int rflag; /* show routing tables (or routing stats) */
extern int sflag; /* show protocol statistics */
extern int tflag; /* show i/f watchdog timers */
extern int Wflag; /* wide display */
-extern int xflag; /* extended display, includes all socket buffer info */
+extern int xflag; /* extended display, includes all socket buffer info */
extern int zflag; /* zero stats */
extern int interval; /* repeat interval for i/f stats */
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index a3222dc..8cc26c8 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -137,7 +137,7 @@ static void ntreestuff(void);
static void np_rtentry(struct rt_msghdr *);
static void p_sockaddr(struct sockaddr *, struct sockaddr *, int, int);
static const char *fmt_sockaddr(struct sockaddr *sa, struct sockaddr *mask,
- int flags);
+ int flags);
static void p_flags(int, const char *);
static const char *fmt_flags(int f);
static void p_rtentry(struct rtentry *);
@@ -150,9 +150,9 @@ void
routepr(u_long rtree)
{
struct radix_node_head *rnh, head;
+ size_t intsize;
int i;
int numfibs;
- size_t intsize;
intsize = sizeof(int);
if (sysctlbyname("net.my_fibnum", &fibnum, &intsize, NULL, 0) == -1)
OpenPOWER on IntegriCloud