mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
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
This commit is contained in:
parent
4a95946a9b
commit
af8af437f3
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ process_arguments (int argc, char **argv)
|
|||
strcpy (ptr_server, optarg);
|
||||
break;
|
||||
case 'a': /* expected address */
|
||||
if (is_dotted_quad (optarg) == FALSE) {
|
||||
if (is_addr (optarg) == FALSE) {
|
||||
printf ("Invalid expected address\n\n");
|
||||
print_usage ();
|
||||
exit (STATE_UNKNOWN);
|
||||
|
|
|
|||
Loading…
Reference in a new issue