summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/commandline.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-01-20 18:46:57 +0000
committerflorian <florian@openbsd.org>2020-01-20 18:46:57 +0000
commitc26d1f50849d5b8b87cd96891fdbd206cbe5f132 (patch)
tree62b0c2971a38a0b7de406544c0d340185df02eff /usr.sbin/bind/lib/isc/commandline.c
parentunifdef threading related defines (diff)
downloadwireguard-openbsd-c26d1f50849d5b8b87cd96891fdbd206cbe5f132.tar.xz
wireguard-openbsd-c26d1f50849d5b8b87cd96891fdbd206cbe5f132.zip
Do not use a message catalog for error messages.
It's not installed anyway. OK millert
Diffstat (limited to 'usr.sbin/bind/lib/isc/commandline.c')
-rw-r--r--usr.sbin/bind/lib/isc/commandline.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/usr.sbin/bind/lib/isc/commandline.c b/usr.sbin/bind/lib/isc/commandline.c
index 9e6a18d6bec..36a08744f8b 100644
--- a/usr.sbin/bind/lib/isc/commandline.c
+++ b/usr.sbin/bind/lib/isc/commandline.c
@@ -43,7 +43,7 @@
* SUCH DAMAGE.
*/
-/* $Id: commandline.c,v 1.9 2020/01/09 14:18:30 florian Exp $ */
+/* $Id: commandline.c,v 1.10 2020/01/20 18:46:57 florian Exp $ */
/*! \file
* This file was adapted from the NetBSD project's source tree, RCS ID:
@@ -145,11 +145,7 @@ isc_commandline_parse(int argc, char * const *argv, const char *options) {
if (isc_commandline_errprint && *options != ':')
fprintf(stderr, "%s: %s -- %c\n",
- isc_commandline_progname,
- isc_msgcat_get(isc_msgcat,
- ISC_MSGSET_COMMANDLINE,
- ISC_MSG_ILLEGALOPT,
- "illegal option"),
+ isc_commandline_progname, "illegal option",
isc_commandline_option);
return (BADOPT);
@@ -199,11 +195,7 @@ isc_commandline_parse(int argc, char * const *argv, const char *options) {
if (isc_commandline_errprint)
fprintf(stderr, "%s: %s -- %c\n",
isc_commandline_progname,
- isc_msgcat_get(isc_msgcat,
- ISC_MSGSET_COMMANDLINE,
- ISC_MSG_OPTNEEDARG,
- "option requires "
- "an argument"),
+ "option requires an argument",
isc_commandline_option);
return (BADOPT);