summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ac/ac.c1
-rw-r--r--usr.sbin/apmd/apmd.c3
-rw-r--r--usr.sbin/dev_mkdb/dev_mkdb.c3
-rw-r--r--usr.sbin/fdformat/fdformat.c4
-rw-r--r--usr.sbin/hotplugd/hotplugd.c3
-rw-r--r--usr.sbin/inetd/inetd.c3
-rw-r--r--usr.sbin/iostat/iostat.c3
-rw-r--r--usr.sbin/lpr/lpq/lpq.c3
-rw-r--r--usr.sbin/makefs/makefs.c3
-rw-r--r--usr.sbin/mtree/mtree.c3
-rw-r--r--usr.sbin/netgroup_mkdb/netgroup_mkdb.c3
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c3
-rw-r--r--usr.sbin/rpc.lockd/lockd.c3
-rw-r--r--usr.sbin/rpc.statd/statd.c3
-rw-r--r--usr.sbin/sa/main.c3
-rw-r--r--usr.sbin/wsconscfg/wsconscfg.c3
-rw-r--r--usr.sbin/wsfontload/wsfontload.c3
17 files changed, 17 insertions, 33 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c
index ed4f7ebefd8..e39b316ebba 100644
--- a/usr.sbin/ac/ac.c
+++ b/usr.sbin/ac/ac.c
@@ -223,7 +223,6 @@ main(int argc, char *argv[])
case 'w':
fp = file(optarg);
break;
- case '?':
default:
usage();
break;
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index 231d504cf09..06fa3796d2e 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmd.c,v 1.109 2022/02/18 22:54:13 deraadt Exp $ */
+/* $OpenBSD: apmd.c,v 1.110 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (c) 1995, 1996 John T. Kohl
@@ -480,7 +480,6 @@ main(int argc, char *argv[])
errx(1, "battery percentage is %s: %s", errstr,
optarg);
break;
- case '?':
default:
usage();
}
diff --git a/usr.sbin/dev_mkdb/dev_mkdb.c b/usr.sbin/dev_mkdb/dev_mkdb.c
index 9bad52a8463..c88418f821a 100644
--- a/usr.sbin/dev_mkdb/dev_mkdb.c
+++ b/usr.sbin/dev_mkdb/dev_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_mkdb.c,v 1.18 2021/07/12 15:09:20 beck Exp $ */
+/* $OpenBSD: dev_mkdb.c,v 1.19 2022/12/04 23:50:50 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -75,7 +75,6 @@ main(int argc, char *argv[])
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
- case '?':
default:
usage();
}
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c
index 2b1603c3779..556e68528f2 100644
--- a/usr.sbin/fdformat/fdformat.c
+++ b/usr.sbin/fdformat/fdformat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdformat.c,v 1.24 2019/06/28 13:32:47 deraadt Exp $ */
+/* $OpenBSD: fdformat.c,v 1.25 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (C) 1992-1994 by Joerg Wunsch, Dresden
@@ -236,7 +236,7 @@ main(int argc, char *argv[])
verify_only = 1;
break;
- case '?': default:
+ default:
usage();
}
diff --git a/usr.sbin/hotplugd/hotplugd.c b/usr.sbin/hotplugd/hotplugd.c
index 9d9aa9647d6..df93ff77897 100644
--- a/usr.sbin/hotplugd/hotplugd.c
+++ b/usr.sbin/hotplugd/hotplugd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hotplugd.c,v 1.17 2021/07/12 15:09:21 beck Exp $ */
+/* $OpenBSD: hotplugd.c,v 1.18 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
@@ -67,7 +67,6 @@ main(int argc, char *argv[])
case 'd':
device = optarg;
break;
- case '?':
default:
usage();
/* NOTREACHED */
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 2c623ef66d1..bffe64b691c 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.162 2020/12/30 18:41:06 benno Exp $ */
+/* $OpenBSD: inetd.c,v 1.163 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@@ -314,7 +314,6 @@ main(int argc, char *argv[])
optarg);
break;
}
- case '?':
default:
fprintf(stderr,
"usage: inetd [-d] [-R rate] [configuration_file]\n");
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index 8d32151fe01..e8c1b96ac8e 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iostat.c,v 1.44 2021/07/12 15:09:21 beck Exp $ */
+/* $OpenBSD: iostat.c,v 1.45 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: iostat.c,v 1.10 1996/10/25 18:21:58 scottr Exp $ */
/*
@@ -150,7 +150,6 @@ main(int argc, char *argv[])
if (errstr)
errx(1, "wait is %s", errstr);
break;
- case '?':
default:
usage();
}
diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c
index 94ddd180164..c4c228b85cb 100644
--- a/usr.sbin/lpr/lpq/lpq.c
+++ b/usr.sbin/lpr/lpq/lpq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpq.c,v 1.23 2016/02/29 17:26:02 jca Exp $ */
+/* $OpenBSD: lpq.c,v 1.24 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: lpq.c,v 1.9 1999/12/07 14:54:47 mrg Exp $ */
/*
@@ -104,7 +104,6 @@ main(int argc, char **argv)
if (wait_time < 30)
warnx("warning: wait time less than 30 seconds");
break;
- case '?':
default:
usage();
}
diff --git a/usr.sbin/makefs/makefs.c b/usr.sbin/makefs/makefs.c
index 75e71c8c28b..af39605d996 100644
--- a/usr.sbin/makefs/makefs.c
+++ b/usr.sbin/makefs/makefs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makefs.c,v 1.21 2021/07/12 15:09:21 beck Exp $ */
+/* $OpenBSD: makefs.c,v 1.22 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: makefs.c,v 1.53 2015/11/27 15:10:32 joerg Exp $ */
/*
@@ -187,7 +187,6 @@ main(int argc, char *argv[])
stampts = get_tstamp(optarg);
break;
- case '?':
default:
usage();
}
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c
index fbfa797750a..b7e5094d2b9 100644
--- a/usr.sbin/mtree/mtree.c
+++ b/usr.sbin/mtree/mtree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtree.c,v 1.27 2021/11/15 15:14:24 millert Exp $ */
+/* $OpenBSD: mtree.c,v 1.28 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */
/*-
@@ -124,7 +124,6 @@ main(int argc, char *argv[])
case 'x':
ftsoptions |= FTS_XDEV;
break;
- case '?':
default:
usage();
}
diff --git a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c
index 1420eec0beb..cb5832b0d1a 100644
--- a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c
+++ b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netgroup_mkdb.c,v 1.22 2019/06/28 14:20:40 schwarze Exp $ */
+/* $OpenBSD: netgroup_mkdb.c,v 1.23 2022/12/04 23:50:51 cheloha Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -110,7 +110,6 @@ main(int argc, char *argv[])
dbname = optarg;
break;
- case '?':
default:
usage();
}
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index e23405b41c7..d2a55325908 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwd_mkdb.c,v 1.59 2021/11/28 19:28:42 deraadt Exp $ */
+/* $OpenBSD: pwd_mkdb.c,v 1.60 2022/12/04 23:50:51 cheloha Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -135,7 +135,6 @@ main(int argc, char **argv)
break;
case 'v': /* backward compatible */
break;
- case '?':
default:
usage();
}
diff --git a/usr.sbin/rpc.lockd/lockd.c b/usr.sbin/rpc.lockd/lockd.c
index 4b7397e3fd5..a3ff649e2db 100644
--- a/usr.sbin/rpc.lockd/lockd.c
+++ b/usr.sbin/rpc.lockd/lockd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lockd.c,v 1.14 2015/04/18 18:28:38 deraadt Exp $ */
+/* $OpenBSD: lockd.c,v 1.15 2022/12/04 23:50:51 cheloha Exp $ */
/*
* Copyright (c) 1995
@@ -91,7 +91,6 @@ main(int argc, char *argv[])
}
break;
default:
- case '?':
usage();
/* NOTREACHED */
}
diff --git a/usr.sbin/rpc.statd/statd.c b/usr.sbin/rpc.statd/statd.c
index 46bc1343513..fd9a3df09ea 100644
--- a/usr.sbin/rpc.statd/statd.c
+++ b/usr.sbin/rpc.statd/statd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: statd.c,v 1.4 2017/01/21 08:33:51 krw Exp $ */
+/* $OpenBSD: statd.c,v 1.5 2022/12/04 23:50:51 cheloha Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -97,7 +97,6 @@ main(int argc, char **argv)
debug = 1;
break;
default:
- case '?':
fprintf(stderr, "usage: %s [-d]\n", __progname);
exit(1);
/* NOTREACHED */
diff --git a/usr.sbin/sa/main.c b/usr.sbin/sa/main.c
index fa7cb2fde79..eb30ae0a5dc 100644
--- a/usr.sbin/sa/main.c
+++ b/usr.sbin/sa/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.18 2022/02/22 17:22:29 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.19 2022/12/04 23:50:51 cheloha Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
* All rights reserved.
@@ -164,7 +164,6 @@ main(int argc, char **argv)
if (errstr)
errx(1, "-v %s: %s", optarg, errstr);
break;
- case '?':
default:
(void)fprintf(stderr,
"usage: %s [-abcDdfijKklmnqrstu] [-v cutoff]"
diff --git a/usr.sbin/wsconscfg/wsconscfg.c b/usr.sbin/wsconscfg/wsconscfg.c
index 8c12221bb1e..4b52025e312 100644
--- a/usr.sbin/wsconscfg/wsconscfg.c
+++ b/usr.sbin/wsconscfg/wsconscfg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconscfg.c,v 1.17 2021/10/24 21:24:19 deraadt Exp $ */
+/* $OpenBSD: wsconscfg.c,v 1.18 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: wsconscfg.c,v 1.4 1999/07/29 18:24:10 augustss Exp $ */
/*
@@ -98,7 +98,6 @@ main(int argc, char *argv[])
case 'F':
dsd.flags |= WSDISPLAY_DELSCR_FORCE;
break;
- case '?':
default:
usage();
break;
diff --git a/usr.sbin/wsfontload/wsfontload.c b/usr.sbin/wsfontload/wsfontload.c
index c9605a80dc1..c933ef436e1 100644
--- a/usr.sbin/wsfontload/wsfontload.c
+++ b/usr.sbin/wsfontload/wsfontload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsfontload.c,v 1.25 2021/10/25 19:54:29 kn Exp $ */
+/* $OpenBSD: wsfontload.c,v 1.26 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
/*
@@ -121,7 +121,6 @@ main(int argc, char *argv[])
case 'B':
f.byteorder = WSDISPLAY_FONTORDER_R2L;
break;
- case '?':
default:
usage();
break;