mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 06:12:01 +01:00
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
This commit is contained in:
parent
74cb9a5333
commit
1631f21745
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358183
@ -304,7 +304,10 @@ main(int argc, char **argv)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Unknown option %c\n", ch);
|
||||
/*
|
||||
* Since opterr is non-zero, getopt will have
|
||||
* already printed an error message.
|
||||
*/
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user