diff options
author | 2015-10-23 08:03:48 +0000 | |
---|---|---|
committer | 2015-10-23 08:03:48 +0000 | |
commit | fef977af6b0c27a892d7085d5e40179e5bfb95f2 (patch) | |
tree | 2aaf62c34f7b958ccc624c0383e7dd34a0ff3309 /usr.bin/netstat/main.c | |
parent | undent includes, from michael reed (diff) | |
download | wireguard-openbsd-fef977af6b0c27a892d7085d5e40179e5bfb95f2.tar.xz wireguard-openbsd-fef977af6b0c27a892d7085d5e40179e5bfb95f2.zip |
simplify backcompat. no more support for kernel or kmem on argv
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 78514d583a3..a3e0f7322d2 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.106 2015/02/12 01:49:02 claudio Exp $ */ +/* $OpenBSD: main.c,v 1.107 2015/10/23 08:03:48 tedu Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* @@ -263,23 +263,18 @@ main(int argc, char *argv[]) argv += optind; argc -= optind; -#define BACKWARD_COMPATIBILITY -#ifdef BACKWARD_COMPATIBILITY if (*argv) { if (isdigit((unsigned char)**argv)) { interval = strtonum(*argv, 1, INT_MAX, &errstr); if (errstr) errx(1, "interval is %s", errstr); ++argv; + --argc; iflag = 1; } - if (*argv) { - nlistf = *argv; - if (*++argv) - memf = *argv; - } } -#endif + if (argc) + usage(); /* * Show per-interface statistics which don't need access to |