]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
makefs: remove vestigial '?' cases from top-level getopt(3) loop
authorEd Maste <emaste@FreeBSD.org>
Thu, 30 Mar 2023 01:33:39 +0000 (21:33 -0400)
committerEd Maste <emaste@FreeBSD.org>
Thu, 30 Mar 2023 13:20:00 +0000 (09:20 -0400)
commitcc4adc4c4e473d47b687d2ac2757157abd728c81
treefa5d7e9a6ac05053bde5da00d2f7325075cdd895
parenta2d2f25dd44ce9a7bed1e83cf63ccae9a46b2d0b
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
usr.sbin/makefs/makefs.c