git: 22d66952555c - main - ifmcstat: Fixup getopt args to match reality.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Jun 2026 01:45:38 UTC
The branch main has been updated by gordon:
URL: https://cgit.FreeBSD.org/src/commit/?id=22d66952555c86a5b7d1d499b48906c3a5f4c13d
commit 22d66952555c86a5b7d1d499b48906c3a5f4c13d
Author: Gordon Tetlow <gordon@FreeBSD.org>
AuthorDate: 2026-06-20 01:39:50 +0000
Commit: Gordon Tetlow <gordon@FreeBSD.org>
CommitDate: 2026-06-20 01:39:50 +0000
ifmcstat: Fixup getopt args to match reality.
Reviewed by: emaste
Fixes: ad0e698e642e ("ifmcstat: remove libkvm(3) code")
Event: BSDCan 2026
---
usr.sbin/ifmcstat/ifmcstat.8 | 3 ---
usr.sbin/ifmcstat/ifmcstat.c | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/usr.sbin/ifmcstat/ifmcstat.8 b/usr.sbin/ifmcstat/ifmcstat.8
index c885aac936e3..6ddb991072da 100644
--- a/usr.sbin/ifmcstat/ifmcstat.8
+++ b/usr.sbin/ifmcstat/ifmcstat.8
@@ -39,9 +39,6 @@
.Op Fl i Ar interface
.Op Fl f Ar address-family
.Op Fl v
-.Op Fl K
-.Op Fl M Ar core
-.Op Fl N Ar system
.\"
.Sh DESCRIPTION
The
diff --git a/usr.sbin/ifmcstat/ifmcstat.c b/usr.sbin/ifmcstat/ifmcstat.c
index 72f5ad765dad..f9745bb1064c 100644
--- a/usr.sbin/ifmcstat/ifmcstat.c
+++ b/usr.sbin/ifmcstat/ifmcstat.c
@@ -127,7 +127,7 @@ usage()
exit(EX_USAGE);
}
-static const char *options = "i:f:vM:N:";
+static const char *options = "i:f:v";
int
main(int argc, char **argv)