From 234481163fc3caf0cb8b14f601f0f9f1458f97f5 Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Thu, 2 Dec 2004 16:51:25 +0000 Subject: 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 --- plugins/negate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/negate.c') 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) textdomain (PACKAGE); if (process_arguments (argc, argv) != TRUE) - usage (_("negate: could not parse arguments\n")); + usage4 (_("Could not parse arguments")); /* Set signal handling and alarm */ if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) @@ -97,6 +97,7 @@ main (int argc, char **argv) die (STATE_UNKNOWN, _("Could not open pipe: %s\n"), command_line); child_stderr = fdopen (child_stderr_array[fileno (child_process)], "r"); + if (child_stderr == NULL) { printf (_("Could not open stderr for %s\n"), command_line); } -- cgit v1.2.3