From 6368b55e2df55e3ddc1cf9b6b703cd4ba8e11030 Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 26 Aug 2001 09:42:05 +0000 Subject: Add a -q to silence zero-output lines and fix some whitespace and text nits. Submitted by: Sam Smith Ok: theo --- usr.bin/netstat/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.bin/netstat/main.c') diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 2e7e2da34ca..96b90b7ed89 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.26 2001/07/05 08:47:44 jjbg Exp $ */ +/* $OpenBSD: main.c,v 1.27 2001/08/26 09:42:04 brian Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ char copyright[] = #if 0 static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94"; #else -static char *rcsid = "$OpenBSD: main.c,v 1.26 2001/07/05 08:47:44 jjbg Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.27 2001/08/26 09:42:04 brian Exp $"; #endif #endif /* not lint */ @@ -297,7 +297,7 @@ main(argc, argv) af = AF_UNSPEC; - while ((ch = getopt(argc, argv, "Aabdf:gI:ilM:mN:np:rstuvw:")) != -1) + while ((ch = getopt(argc, argv, "Aabdf:gI:ilM:mN:np:qrstuvw:")) != -1) switch(ch) { case 'A': Aflag = 1; @@ -371,6 +371,9 @@ main(argc, argv) } pflag = 1; break; + case 'q': + qflag = 1; + break; case 'r': rflag = 1; break; -- cgit v1.2.3