aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
authorGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-04 12:31:41 +0000
committerGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-04 12:31:41 +0000
commit154b5caf9ea0aedf502a754c345fa0553c146b48 (patch)
tree3234a357e71e019e9cc11440087be50611720cc4 /plugins/check_dns.c
parent81bee45f6e562ffc30e1129cf00cd76444a77ce8 (diff)
downloadmonitoring-plugins-154b5caf9ea0aedf502a754c345fa0553c146b48.tar.gz
various internationalization fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1002 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index b9ad29d3..dd6ebdab 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -324,9 +324,7 @@ process_arguments (int argc, char **argv)
/* TODO: this is_host check is probably unnecessary. */
/* Better to confirm nslookup response matches */
if (is_host (optarg) == FALSE) {
- printf (_("Invalid hostname/address\n\n"));
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Invalid hostname/address"), optarg);
}
if (strlen (optarg) >= ADDRESS_LENGTH)
die (STATE_UNKNOWN, _("Input buffer overflow\n"));