summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2010-07-30 12:55:13 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2010-07-30 12:55:13 +0000
commitd46ad09c8c63c1a592da6ec7249090b9a50d0a67 (patch)
tree081e7decb8d661df686bd156a8a8b8c73479fd38 /usr.bin/netstat
parent10842f0370d5a7c124ac7bd480b0326fe40115b3 (diff)
Do not print "Label" caption for "netstat -rvA".
ok markus@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/show.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/show.c b/usr.bin/netstat/show.c
index 62348b4f97b..7c4ea8d12f8 100644
--- a/usr.bin/netstat/show.c
+++ b/usr.bin/netstat/show.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.c,v 1.32 2010/07/29 16:35:40 bluhm Exp $ */
+/* $OpenBSD: show.c,v 1.33 2010/07/30 12:55:12 bluhm Exp $ */
/* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */
/*
@@ -249,7 +249,7 @@ pr_rthdr(int af, int Aflag)
WID_DST(af), WID_DST(af), "Destination",
WID_GW(af), WID_GW(af), "Gateway",
"Flags", "Refs", "Use", "Mtu", "Prio", "Iface");
- if (vflag)
+ if (vflag && !Aflag)
printf(" %s", "Label");
putchar('\n');
break;