summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2001-08-26 09:42:05 +0000
committerbrian <brian@cvs.openbsd.org>2001-08-26 09:42:05 +0000
commit6368b55e2df55e3ddc1cf9b6b703cd4ba8e11030 (patch)
treef7beae31c9277c5e28c066f85eda2f2f57ecf5fe /usr.bin/netstat/main.c
parentc1ba8d213e9c957c72d57c56a9784ac87e49a7f1 (diff)
Add a -q to silence zero-output lines and fix some whitespace and text nits.
Submitted by: Sam Smith <S@mSmith.net> Ok: theo
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c9
1 files changed, 6 insertions, 3 deletions
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;