Code

1041571: -D option processing corrected (Eric Chen). Changed process_arguments()...
authorStanley Hopcroft <stanleyhopcroft@users.sourceforge.net>
Fri, 3 Dec 2004 21:56:44 +0000 (21:56 +0000)
committerStanley Hopcroft <stanleyhopcroft@users.sourceforge.net>
Fri, 3 Dec 2004 21:56:44 +0000 (21:56 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@995 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_tcp.c

index 41feb97f5b44ed6ae651a71f25ea8945c3638441..b2066c7af9b05102aa1901fea285c752c43c06e7 100644 (file)
@@ -447,7 +447,7 @@ process_arguments (int argc, char **argv)
        }
 
        while (1) {
-               c = getopt_long (argc, argv, "+hVv46H:s:e:q:m:c:w:t:p:C:W:d:Sr:j:D",
+               c = getopt_long (argc, argv, "+hVv46H:s:e:q:m:c:w:t:p:C:W:d:Sr:jD:",
                                 longopts, &option);
 
                if (c == -1 || c == EOF || c == 1)
@@ -574,7 +574,7 @@ process_arguments (int argc, char **argv)
        if (server_address == NULL)
                usage (_("You must provide a server address\n"));
 
-       return OK;
+       return TRUE;
 }