Code

1041571: -D option processing corrected (Eric Chen). Changed process_arguments()...
[nagiosplug.git] / plugins / check_ping.c
index e3f5398bc66ca99887f9d219bb31de6baef970bb..9fe71831684923d1fffa1816ce0c56c60a61eee3 100644 (file)
@@ -475,7 +475,7 @@ error_scan (char buf[MAX_INPUT_BUFFER], const char *addr)
                        warn_text = strdup (_(WARN_DUPLICATES));
                else if (! strstr (warn_text, _(WARN_DUPLICATES)) &&
                         asprintf (&warn_text, "%s %s", warn_text, _(WARN_DUPLICATES)) == -1)
-                       die (STATE_UNKNOWN, _("unable to realloc warn_text"));
+                       die (STATE_UNKNOWN, _("Unable to realloc warn_text"));
                return (STATE_WARNING);
        }
 
@@ -484,17 +484,6 @@ error_scan (char buf[MAX_INPUT_BUFFER], const char *addr)
 
 
 
-void
-print_usage (void)
-{
-       printf (\
-"Usage: %s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\
-  [-p packets] [-t timeout] [-L] [-4|-6]\n", progname);
-       printf (_(UT_HLP_VRS), progname, progname);
-}
-
-
-
 void
 print_help (void)
 {
@@ -539,3 +528,10 @@ the contrib area of the downloads section at http://www.nagios.org\n\n"));
 
        printf (_(UT_SUPPORT));
 }
+
+void
+print_usage (void)
+{
+       printf ("Usage: %s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\
+                     [-p packets] [-t timeout] [-L] [-4|-6]\n", progname);
+}