summaryrefslogtreecommitdiffstats
path: root/plugins/negate.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-02 16:51:25 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-02 16:51:25 +0000
commit234481163fc3caf0cb8b14f601f0f9f1458f97f5 (patch)
treee8debce30a2722f5f4dc5e33faf54c9915dd022f /plugins/negate.c
parentdf1bd0c89ff63de64ee630e0025389651947020c (diff)
downloadmonitoring-plugins-234481163fc3caf0cb8b14f601f0f9f1458f97f5.tar.gz
More internationalization work
new usage4 function to permit localisation of think like check_ssh: xxxxx git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@979 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/negate.c')
-rw-r--r--plugins/negate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/negate.c b/plugins/negate.c
index 02838a67..9e25ebc5 100644
--- a/plugins/negate.c
+++ b/plugins/negate.c
@@ -84,7 +84,7 @@ main (int argc, char **argv)
84 textdomain (PACKAGE); 84 textdomain (PACKAGE);
85 85
86 if (process_arguments (argc, argv) != TRUE) 86 if (process_arguments (argc, argv) != TRUE)
87 usage (_("negate: could not parse arguments\n")); 87 usage4 (_("Could not parse arguments"));
88 88
89 /* Set signal handling and alarm */ 89 /* Set signal handling and alarm */
90 if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) 90 if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR)
@@ -97,6 +97,7 @@ main (int argc, char **argv)
97 die (STATE_UNKNOWN, _("Could not open pipe: %s\n"), command_line); 97 die (STATE_UNKNOWN, _("Could not open pipe: %s\n"), command_line);
98 98
99 child_stderr = fdopen (child_stderr_array[fileno (child_process)], "r"); 99 child_stderr = fdopen (child_stderr_array[fileno (child_process)], "r");
100
100 if (child_stderr == NULL) { 101 if (child_stderr == NULL) {
101 printf (_("Could not open stderr for %s\n"), command_line); 102 printf (_("Could not open stderr for %s\n"), command_line);
102 } 103 }