summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorStanley Hopcroft <stanleyhopcroft@users.sourceforge.net>2004-12-03 21:56:44 +0000
committerStanley Hopcroft <stanleyhopcroft@users.sourceforge.net>2004-12-03 21:56:44 +0000
commitc6a18d714a1ee49c62eb3b53ebff41ecadf3b7c2 (patch)
tree6f99fda7bd89cc9164c330a64b454dbd2d6117cf /plugins
parentedf60f6dceba48555f2534d9a217a8c5913ce029 (diff)
downloadmonitoring-plugins-c6a18d714a1ee49c62eb3b53ebff41ecadf3b7c2.tar.gz
1041571: -D option processing corrected (Eric Chen). Changed process_arguments() to return TRUE. Dont know why this was necessary.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@995 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 41feb97f..b2066c7a 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -447,7 +447,7 @@ process_arguments (int argc, char **argv)
447 } 447 }
448 448
449 while (1) { 449 while (1) {
450 c = getopt_long (argc, argv, "+hVv46H:s:e:q:m:c:w:t:p:C:W:d:Sr:j:D", 450 c = getopt_long (argc, argv, "+hVv46H:s:e:q:m:c:w:t:p:C:W:d:Sr:jD:",
451 longopts, &option); 451 longopts, &option);
452 452
453 if (c == -1 || c == EOF || c == 1) 453 if (c == -1 || c == EOF || c == 1)
@@ -574,7 +574,7 @@ process_arguments (int argc, char **argv)
574 if (server_address == NULL) 574 if (server_address == NULL)
575 usage (_("You must provide a server address\n")); 575 usage (_("You must provide a server address\n"));
576 576
577 return OK; 577 return TRUE;
578} 578}
579 579
580 580