diff options
author | Ed Maste <emaste@FreeBSD.org> | 2023-03-30 01:33:39 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-04-14 12:10:36 +0000 |
commit | 57f6ba0e387836c6d7356829d71c30ef96e914cb (patch) | |
tree | c49af0410e9c469a69d62e40634043cd5cdb3b1e | |
parent | 5f31bbc5fab3f3df9a8e586d39411559a7716dae (diff) | |
download | src-57f6ba0e387836c6d7356829d71c30ef96e914cb.tar.gz src-57f6ba0e387836c6d7356829d71c30ef96e914cb.zip |
makefs: remove vestigial '?' cases from top-level getopt(3) loop
getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument. We can
handle this case with the "default" failure case with no loss of
legibility.
Obtained from: OpenBSD makefs.c 1.22
(cherry picked from commit cc4adc4c4e473d47b687d2ac2757157abd728c81)
-rw-r--r-- | usr.sbin/makefs/makefs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.sbin/makefs/makefs.c b/usr.sbin/makefs/makefs.c index 987f4159b403..7f23b8a6a5f1 100644 --- a/usr.sbin/makefs/makefs.c +++ b/usr.sbin/makefs/makefs.c @@ -270,7 +270,6 @@ main(int argc, char *argv[]) fsoptions.sparse = 1; break; - case '?': default: usage(fstype, &fsoptions); /* NOTREACHED */ |