From: dlg Date: Fri, 28 Oct 2022 11:24:49 +0000 (+0000) Subject: getopt optstring doesn't need '?'. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e7155720719033b2ca2b2aa8cf521d212902cd1b;p=openbsd getopt optstring doesn't need '?'. found while hacking up a comp3301 prac/assignment ok millert@ deraadt@ --- diff --git a/usr.sbin/usbdevs/usbdevs.c b/usr.sbin/usbdevs/usbdevs.c index acbe77a5285..5be9c69e0d6 100644 --- a/usr.sbin/usbdevs/usbdevs.c +++ b/usr.sbin/usbdevs/usbdevs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdevs.c,v 1.34 2021/07/12 15:09:22 beck Exp $ */ +/* $OpenBSD: usbdevs.c,v 1.35 2022/10/28 11:24:49 dlg Exp $ */ /* $NetBSD: usbdevs.c,v 1.19 2002/02/21 00:34:31 christos Exp $ */ /* @@ -239,7 +239,7 @@ main(int argc, char **argv) uint8_t addr = 0; const char *errstr; - while ((ch = getopt(argc, argv, "a:d:v?")) != -1) { + while ((ch = getopt(argc, argv, "a:d:v")) != -1) { switch (ch) { case 'a': addr = strtonum(optarg, 1, USB_MAX_DEVICES-1, &errstr);