summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/netstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/systat/netstat.c')
-rw-r--r--usr.bin/systat/netstat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index 1ffc14e..564362e 100644
--- a/usr.bin/systat/netstat.c
+++ b/usr.bin/systat/netstat.c
@@ -146,12 +146,14 @@ static const char *miblist[] = {
"net.inet.udp.pcblist"
};
+static char tcb[] = "tcb", udb[] = "udb";
+
struct nlist namelist[] = {
#define X_TCB 0
- { "tcb" },
+ { .n_name = tcb },
#define X_UDB 1
- { "udb" },
- { "" },
+ { .n_name = udb },
+ { .n_name = NULL },
};
int
OpenPOWER on IntegriCloud