diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-25 23:17:46 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-25 23:17:46 +0000 |
commit | e9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch) | |
tree | 91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/utils.c | |
parent | 71656b2aafffb69716620bf08cce76c925dc8fa3 (diff) | |
download | monitoring-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.c | 8 |
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) | |||
53 | 53 | ||
54 | void usage (const char *msg) | 54 | void usage (const char *msg) |
55 | { | 55 | { |
56 | printf ("%s", msg); | 56 | printf ("%s\n", msg); |
57 | print_usage (); | 57 | print_usage (); |
58 | exit (STATE_UNKNOWN); | 58 | exit (STATE_UNKNOWN); |
59 | } | 59 | } |
@@ -133,7 +133,7 @@ void | |||
133 | timeout_alarm_handler (int signo) | 133 | timeout_alarm_handler (int signo) |
134 | { | 134 | { |
135 | if (signo == SIGALRM) { | 135 | if (signo == SIGALRM) { |
136 | printf ("CRITICAL - Plugin timed out after %d seconds\n", | 136 | printf (_("CRITICAL - Plugin timed out after %d seconds\n"), |
137 | timeout_interval); | 137 | timeout_interval); |
138 | exit (STATE_CRITICAL); | 138 | exit (STATE_CRITICAL); |
139 | } | 139 | } |
@@ -430,7 +430,7 @@ strpcpy (char *dest, const char *src, const char *str) | |||
430 | if (dest == NULL || strlen (dest) < len) | 430 | if (dest == NULL || strlen (dest) < len) |
431 | dest = realloc (dest, len + 1); | 431 | dest = realloc (dest, len + 1); |
432 | if (dest == NULL) | 432 | if (dest == NULL) |
433 | die (STATE_UNKNOWN, "failed realloc in strpcpy\n"); | 433 | die (STATE_UNKNOWN, _("failed realloc in strpcpy\n")); |
434 | 434 | ||
435 | strncpy (dest, src, len); | 435 | strncpy (dest, src, len); |
436 | dest[len] = '\0'; | 436 | dest[len] = '\0'; |
@@ -472,7 +472,7 @@ strpcat (char *dest, const char *src, const char *str) | |||
472 | 472 | ||
473 | dest = realloc (dest, len + l2 + 1); | 473 | dest = realloc (dest, len + l2 + 1); |
474 | if (dest == NULL) | 474 | if (dest == NULL) |
475 | die (STATE_UNKNOWN, "failed malloc in strscat\n"); | 475 | die (STATE_UNKNOWN, _("failed malloc in strscat\n")); |
476 | 476 | ||
477 | strncpy (dest + len, src, l2); | 477 | strncpy (dest + len, src, l2); |
478 | dest[len + l2] = '\0'; | 478 | dest[len + l2] = '\0'; |