From 0c1c9f51e2c33db04918d2aa322fd1f9a688979b Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 24 Nov 2004 00:46:40 +0000 Subject: Making messages more consistent git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@930 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_dns.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/check_dns.c') diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 39023f95..7b18270f 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c @@ -331,9 +331,7 @@ process_arguments (int argc, char **argv) case 'r': /* reverse server name */ /* TODO: Is this is_host necessary? */ if (is_host (optarg) == FALSE) { - printf (_("Invalid host name/address\n\n")); - print_usage (); - exit (STATE_UNKNOWN); + usage2 (_("Invalid host name/address"), optarg); } if (strlen (optarg) >= ADDRESS_LENGTH) die (STATE_UNKNOWN, _("Input buffer overflow\n")); @@ -391,8 +389,8 @@ print_help (void) { print_revision (progname, revision); - printf (_("Copyright (c) 1999 Ethan Galstad \n")); - printf (_(COPYRIGHT), copyright, email); + printf ("Copyright (c) 1999 Ethan Galstad \n"); + printf (COPYRIGHT, copyright, email); print_usage (); -- cgit v1.2.3