From 4ff9c03cc5473279294834633392fa9be8fe0be2 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Sat, 27 Jan 2001 03:18:55 +0000 Subject: [PATCH] Add dummy -n option, for compatibility with the standard netstat --- release/picobsd/tinyware/ns/ns.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/release/picobsd/tinyware/ns/ns.c b/release/picobsd/tinyware/ns/ns.c index 2d625291751..0e2eeff7d4c 100644 --- a/release/picobsd/tinyware/ns/ns.c +++ b/release/picobsd/tinyware/ns/ns.c @@ -75,7 +75,7 @@ extern int optind; void usage() { - fprintf(stderr,"\n%s [-rsi] [-p proto] [-w wait]\n",progname); + fprintf(stderr,"\n%s [-nrsi] [-p proto] [-w wait]\n",progname); #ifdef BRIDGING fprintf(stderr," proto: {ip|tcp|udp|icmp|bdg}\n\n"); #else @@ -677,11 +677,13 @@ main(int argc, char *argv[]) progname=argv[0]; - while((c=getopt(argc,argv,"irsp:w:"))!=-1) { + while((c=getopt(argc,argv,"inrsp:w:"))!=-1) { switch(c) { case 'w': wflag = atoi(optarg) ; break; + case 'n' /* ignored, just for compatibility with std netstat */ + break ; case 'r': rflag++; break;