]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dtc: remove unknown option printf, since getopt will print it
authorbcran <bcran@FreeBSD.org>
Thu, 20 Feb 2020 21:29:59 +0000 (21:29 +0000)
committerbcran <bcran@FreeBSD.org>
Thu, 20 Feb 2020 21:29:59 +0000 (21:29 +0000)
commitc562354ab8bac92928eee086f64bd37c7c0e1647
treef8781f8ec125c41c9102826b1391398b875b0aa9
parent073739ed6e2eb3c7ad3cdaa77a49df8d8cb08ae0
dtc: remove unknown option printf, since getopt will print it

Since we don't set opterr to 0, getopt prints a message when it
encounters an unknown/invalid option. We therefore don't need to
print our own message in the default handler.

Reviewed by: kevans, theraven
Differential Revision: https://reviews.freebsd.org/D23662
usr.bin/dtc/dtc.cc