summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy T. Bouse <undrgrid@users.sourceforge.net>2003-03-08 02:27:57 (GMT)
committerJeremy T. Bouse <undrgrid@users.sourceforge.net>2003-03-08 02:27:57 (GMT)
commitaf8af437f390e008361084b0a59e4cc155cc39c1 (patch)
treed5ad1f89dd5fec926374990ab5594fcf8a15c7c7
parent4a95946a9b634513494553808b31372060e3c045 (diff)
downloadmonitoring-plugins-af8af437f390e008361084b0a59e4cc155cc39c1.tar.gz
Modified code to call is_addr() rather than is_dotted_quad() with the
new AF indepdent function routines git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@385 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 19649f5..ac62c45 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -342,7 +342,7 @@ process_arguments (int argc, char **argv)
342 strcpy (ptr_server, optarg); 342 strcpy (ptr_server, optarg);
343 break; 343 break;
344 case 'a': /* expected address */ 344 case 'a': /* expected address */
345 if (is_dotted_quad (optarg) == FALSE) { 345 if (is_addr (optarg) == FALSE) {
346 printf ("Invalid expected address\n\n"); 346 printf ("Invalid expected address\n\n");
347 print_usage (); 347 print_usage ();
348 exit (STATE_UNKNOWN); 348 exit (STATE_UNKNOWN);