summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/disklabel/disklabel.c3
-rw-r--r--sbin/dmesg/dmesg.c3
-rw-r--r--sbin/dumpfs/dumpfs.c3
-rw-r--r--sbin/growfs/growfs.c4
-rw-r--r--sbin/isakmpd/isakmpd.c3
-rw-r--r--sbin/mount/mount.c3
-rw-r--r--sbin/mount_cd9660/mount_cd9660.c3
-rw-r--r--sbin/mount_ext2fs/mount_ext2fs.c3
-rw-r--r--sbin/mount_ffs/mount_ffs.c3
-rw-r--r--sbin/mount_msdos/mount_msdos.c3
-rw-r--r--sbin/mount_tmpfs/mount_tmpfs.c3
-rw-r--r--sbin/newfs/newfs.c3
-rw-r--r--sbin/newfs_ext2fs/newfs_ext2fs.c3
-rw-r--r--sbin/savecore/savecore.c3
-rw-r--r--sbin/scsi/scsi.c3
-rw-r--r--sbin/ttyflags/ttyflags.c3
16 files changed, 16 insertions, 33 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 9fec7daa9f7..45974d8ca46 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.245 2022/10/12 23:11:32 krw Exp $ */
+/* $OpenBSD: disklabel.c,v 1.246 2022/12/04 23:50:46 cheloha Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -186,7 +186,6 @@ main(int argc, char *argv[])
case 'v':
verbose = 1;
break;
- case '?':
default:
usage();
}
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c
index 1b4ef99e5b9..29fb0a8032d 100644
--- a/sbin/dmesg/dmesg.c
+++ b/sbin/dmesg/dmesg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dmesg.c,v 1.32 2022/08/03 00:23:14 cheloha Exp $ */
+/* $OpenBSD: dmesg.c,v 1.33 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: dmesg.c,v 1.8 1995/03/18 14:54:49 cgd Exp $ */
/*-
@@ -82,7 +82,6 @@ main(int argc, char *argv[])
case 'N':
nlistf = optarg;
break;
- case '?':
default:
usage();
}
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index 0f09598a232..ec6da9dd3d1 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dumpfs.c,v 1.36 2020/06/20 07:49:04 otto Exp $ */
+/* $OpenBSD: dumpfs.c,v 1.37 2022/12/04 23:50:46 cheloha Exp $ */
/*
* Copyright (c) 2002 Networks Associates Technology, Inc.
@@ -89,7 +89,6 @@ main(int argc, char *argv[])
case 'm':
domarshal = 1;
break;
- case '?':
default:
usage();
}
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index cdf1ac55352..73b849656bd 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: growfs.c,v 1.54 2020/06/20 07:49:04 otto Exp $ */
+/* $OpenBSD: growfs.c,v 1.55 2022/12/04 23:50:46 cheloha Exp $ */
/*
* Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
* Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
@@ -1735,8 +1735,6 @@ main(int argc, char **argv)
case 'y':
ExpertFlag = 1;
break;
- case '?':
- /* FALLTHROUGH */
default:
usage();
}
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c
index d4cc5f73cf5..d0fa0da0b23 100644
--- a/sbin/isakmpd/isakmpd.c
+++ b/sbin/isakmpd/isakmpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isakmpd.c,v 1.107 2018/01/15 09:54:48 mpi Exp $ */
+/* $OpenBSD: isakmpd.c,v 1.108 2022/12/04 23:50:46 cheloha Exp $ */
/* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */
/*
@@ -212,7 +212,6 @@ parse_args(int argc, char *argv[])
verbose_logging = 1;
break;
- case '?':
default:
usage();
}
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index c3f4f581e32..b9805191148 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.c,v 1.75 2022/04/09 15:40:55 dv Exp $ */
+/* $OpenBSD: mount.c,v 1.76 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */
/*
@@ -158,7 +158,6 @@ main(int argc, char * const argv[])
if (!hasopt(options, "rw"))
options = catopt(options, "rw");
break;
- case '?':
default:
usage();
}
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c
index 2bc61f70f75..b35f35cce16 100644
--- a/sbin/mount_cd9660/mount_cd9660.c
+++ b/sbin/mount_cd9660/mount_cd9660.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_cd9660.c,v 1.22 2019/06/28 13:32:44 deraadt Exp $ */
+/* $OpenBSD: mount_cd9660.c,v 1.23 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: mount_cd9660.c,v 1.3 1996/04/13 01:31:08 jtc Exp $ */
/*
@@ -91,7 +91,6 @@ main(int argc, char *argv[])
errx(1, "session number is %s: %s", errstr,
optarg);
break;
- case '?':
default:
usage();
}
diff --git a/sbin/mount_ext2fs/mount_ext2fs.c b/sbin/mount_ext2fs/mount_ext2fs.c
index 261cf151f50..3a57c010f43 100644
--- a/sbin/mount_ext2fs/mount_ext2fs.c
+++ b/sbin/mount_ext2fs/mount_ext2fs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ext2fs.c,v 1.19 2019/06/28 13:32:44 deraadt Exp $ */
+/* $OpenBSD: mount_ext2fs.c,v 1.20 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
@@ -65,7 +65,6 @@ main(int argc, char *argv[])
case 'o':
getmntopts(optarg, mopts, &mntflags);
break;
- case '?':
default:
ext2fs_usage();
}
diff --git a/sbin/mount_ffs/mount_ffs.c b/sbin/mount_ffs/mount_ffs.c
index b3915ee27b8..a531b2b1f3f 100644
--- a/sbin/mount_ffs/mount_ffs.c
+++ b/sbin/mount_ffs/mount_ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ffs.c,v 1.25 2019/06/28 13:32:44 deraadt Exp $ */
+/* $OpenBSD: mount_ffs.c,v 1.26 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
@@ -72,7 +72,6 @@ main(int argc, char *argv[])
case 'o':
getmntopts(optarg, mopts, &mntflags);
break;
- case '?':
default:
ffs_usage();
}
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c
index 08ae5cdf011..f6378cafebc 100644
--- a/sbin/mount_msdos/mount_msdos.c
+++ b/sbin/mount_msdos/mount_msdos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_msdos.c,v 1.35 2022/08/20 07:03:24 tb Exp $ */
+/* $OpenBSD: mount_msdos.c,v 1.36 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */
/*
@@ -97,7 +97,6 @@ main(int argc, char **argv)
case 'o':
getmntopts(optarg, mopts, &mntflags);
break;
- case '?':
default:
usage();
break;
diff --git a/sbin/mount_tmpfs/mount_tmpfs.c b/sbin/mount_tmpfs/mount_tmpfs.c
index 98d84f38fe4..64611b33674 100644
--- a/sbin/mount_tmpfs/mount_tmpfs.c
+++ b/sbin/mount_tmpfs/mount_tmpfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_tmpfs.c,v 1.7 2018/07/11 07:03:03 martijn Exp $ */
+/* $OpenBSD: mount_tmpfs.c,v 1.8 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: mount_tmpfs.c,v 1.24 2008/08/05 20:57:45 pooka Exp $ */
/*
@@ -132,7 +132,6 @@ mount_tmpfs_parseargs(int argc, char *argv[],
uidset = 1;
break;
- case '?':
default:
usage();
}
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 815b9b946ca..7ab691d78f0 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newfs.c,v 1.116 2022/11/19 08:02:11 sthen Exp $ */
+/* $OpenBSD: newfs.c,v 1.117 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */
/*
@@ -310,7 +310,6 @@ main(int argc, char *argv[])
pop = optarg;
break;
#endif
- case '?':
default:
usage();
}
diff --git a/sbin/newfs_ext2fs/newfs_ext2fs.c b/sbin/newfs_ext2fs/newfs_ext2fs.c
index 3017ec220cc..f7e48286f7c 100644
--- a/sbin/newfs_ext2fs/newfs_ext2fs.c
+++ b/sbin/newfs_ext2fs/newfs_ext2fs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newfs_ext2fs.c,v 1.28 2021/06/26 15:42:58 deraadt Exp $ */
+/* $OpenBSD: newfs_ext2fs.c,v 1.29 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: newfs_ext2fs.c,v 1.8 2009/03/02 10:38:13 tsutsui Exp $ */
/*
@@ -212,7 +212,6 @@ main(int argc, char *argv[])
errx(EXIT_FAILURE,
"Volume name cannot be zero length");
break;
- case '?':
default:
usage();
}
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index d2f690ebfbd..afc223e5a08 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore.c,v 1.64 2022/03/25 16:14:55 tb Exp $ */
+/* $OpenBSD: savecore.c,v 1.65 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */
/*-
@@ -154,7 +154,6 @@ main(int argc, char *argv[])
case 'z':
zcompress = 1;
break;
- case '?':
default:
usage();
}
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c
index b3861775794..7c58808cd26 100644
--- a/sbin/scsi/scsi.c
+++ b/sbin/scsi/scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi.c,v 1.31 2021/06/22 14:51:29 jmc Exp $ */
+/* $OpenBSD: scsi.c,v 1.32 2022/12/04 23:50:47 cheloha Exp $ */
/* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */
/*
@@ -133,7 +133,6 @@ procargs(int *argc_p, char ***argv_p)
case 'v':
verbose = 1;
break;
- case '?':
default:
usage();
}
diff --git a/sbin/ttyflags/ttyflags.c b/sbin/ttyflags/ttyflags.c
index 252a0f5ebe6..e60dfb52f09 100644
--- a/sbin/ttyflags/ttyflags.c
+++ b/sbin/ttyflags/ttyflags.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttyflags.c,v 1.16 2021/10/24 21:24:22 deraadt Exp $ */
+/* $OpenBSD: ttyflags.c,v 1.17 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: ttyflags.c,v 1.8 1996/04/09 05:20:30 cgd Exp $ */
/*
@@ -78,7 +78,6 @@ main(int argc, char *argv[])
case 'v':
vflag = 1;
break;
- case '?':
default:
usage();
}