diff options
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'; |