dmesg(8) doesn't use any positional arguments. If we see any, it's a
usage error.
ok florian@, "Sure" deraadt@ millert@
-/* $OpenBSD: dmesg.c,v 1.31 2019/12/24 13:20:44 bluhm Exp $ */
+/* $OpenBSD: dmesg.c,v 1.32 2022/08/03 00:23:14 cheloha Exp $ */
/* $NetBSD: dmesg.c,v 1.8 1995/03/18 14:54:49 cgd Exp $ */
/*-
argc -= optind;
argv += optind;
+ if (argc != 0)
+ usage();
+
if (memf == NULL && nlistf == NULL) {
int mib[2], msgbufsize;
size_t len;