[rtems-libbsd commit] NETSTAT(1): Fix name list initialization
Sebastian Huber
sebh at rtems.org
Tue Jan 10 10:06:12 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 95a3ba82840ffe4dfd0cf5079a35eec16ae18525
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=95a3ba82840ffe4dfd0cf5079a35eec16ae18525
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jan 9 08:50:55 2017 +0100
NETSTAT(1): Fix name list initialization
---
freebsd/usr.bin/netstat/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/freebsd/usr.bin/netstat/main.c b/freebsd/usr.bin/netstat/main.c
index a58ee64..1628036 100644
--- a/freebsd/usr.bin/netstat/main.c
+++ b/freebsd/usr.bin/netstat/main.c
@@ -520,6 +520,9 @@ main(int argc, char *argv[])
if (xflag && Tflag)
xo_errx(1, "-x and -T are incompatible, pick one.");
+ /* Load all necessary kvm symbols */
+ kresolve_list(nl);
+
if (Bflag) {
if (!live)
usage();
@@ -602,9 +605,6 @@ main(int argc, char *argv[])
exit(0);
}
- /* Load all necessary kvm symbols */
- kresolve_list(nl);
-
if (tp) {
xo_open_container("statistics");
printproto(tp, tp->pr_name, &first);
More information about the vc
mailing list