diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-08 02:27:57 +0000 |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-08 02:27:57 +0000 |
commit | af8af437f390e008361084b0a59e4cc155cc39c1 (patch) | |
tree | d5ad1f89dd5fec926374990ab5594fcf8a15c7c7 /plugins/check_dns.c | |
parent | 4a95946a9b634513494553808b31372060e3c045 (diff) | |
download | monitoring-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
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 19649f50..ac62c457 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); |