aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-10-15 09:55:07 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-10-15 09:55:07 +0000
commit84c1edcbad7d4cf8db3b026ee1c8adb69423e13b (patch)
treecbc27b736c75a09a773308a6dfa37003d78b5771 /usr.bin/netstat/main.c
parent1fa042f0adc398b9fe13c8e12f66fb195f48dfcd (diff)
downloadsrc-84c1edcbad7d4cf8db3b026ee1c8adb69423e13b.tar.gz
src-84c1edcbad7d4cf8db3b026ee1c8adb69423e13b.zip
Notes
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 4efa280591ca..feb97dc0f0d9 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -71,7 +71,7 @@ __FBSDID("$FreeBSD$");
static struct nlist nl[] = {
#define N_IFNET 0
- { .n_name = "_ifnet" },
+ { .n_name = "_ifnet" }, /* XXXGL: can be deleted */
#define N_RTSTAT 1
{ .n_name = "_rtstat" },
#define N_RTREE 2
@@ -552,7 +552,7 @@ main(int argc, char *argv[])
#endif
kread(0, NULL, 0);
if (iflag && !sflag) {
- intpr(interval, nl[N_IFNET].n_value, NULL);
+ intpr(interval, NULL);
exit(0);
}
if (rflag) {
@@ -636,8 +636,7 @@ printproto(struct protox *tp, const char *name)
if (sflag) {
if (iflag) {
if (tp->pr_istats)
- intpr(interval, nl[N_IFNET].n_value,
- tp->pr_istats);
+ intpr(interval, tp->pr_istats);
else if (pflag)
printf("%s: no per-interface stats routine\n",
tp->pr_name);