aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.c
diff options
context:
space:
mode:
authorGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-25 23:17:46 +0000
committerGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-25 23:17:46 +0000
commite9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch)
tree91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/utils.c
parent71656b2aafffb69716620bf08cce76c925dc8fa3 (diff)
downloadmonitoring-plugins-e9ccc6b21a1152bbf150302c4a29a6df79d75bd7.tar.gz
various fixes for localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.c')
-rw-r--r--plugins/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/utils.c b/plugins/utils.c
index b2948e65..b9a19d3f 100644
--- a/plugins/utils.c
+++ b/plugins/utils.c
@@ -53,7 +53,7 @@ max_state (int a, int b)
void usage (const char *msg)
{
- printf ("%s", msg);
+ printf ("%s\n", msg);
print_usage ();
exit (STATE_UNKNOWN);
}
@@ -133,7 +133,7 @@ void
timeout_alarm_handler (int signo)
{
if (signo == SIGALRM) {
- printf ("CRITICAL - Plugin timed out after %d seconds\n",
+ printf (_("CRITICAL - Plugin timed out after %d seconds\n"),
timeout_interval);
exit (STATE_CRITICAL);
}
@@ -430,7 +430,7 @@ strpcpy (char *dest, const char *src, const char *str)
if (dest == NULL || strlen (dest) < len)
dest = realloc (dest, len + 1);
if (dest == NULL)
- die (STATE_UNKNOWN, "failed realloc in strpcpy\n");
+ die (STATE_UNKNOWN, _("failed realloc in strpcpy\n"));
strncpy (dest, src, len);
dest[len] = '\0';
@@ -472,7 +472,7 @@ strpcat (char *dest, const char *src, const char *str)
dest = realloc (dest, len + l2 + 1);
if (dest == NULL)
- die (STATE_UNKNOWN, "failed malloc in strscat\n");
+ die (STATE_UNKNOWN, _("failed malloc in strscat\n"));
strncpy (dest + len, src, l2);
dest[len + l2] = '\0';