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/check_game.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/check_game.c')
-rw-r--r-- | plugins/check_game.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/plugins/check_game.c b/plugins/check_game.c index 6699c71d..05b363af 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c @@ -123,15 +123,15 @@ main (int argc, char **argv) } if (strstr (ret[2], QSTAT_HOST_ERROR)) { - printf ("CRITICAL - Host not found\n"); + printf (_("CRITICAL - Host not found\n")); result = STATE_CRITICAL; } else if (strstr (ret[2], QSTAT_HOST_DOWN)) { - printf ("CRITICAL - Game server down or unavailable\n"); + printf (_("CRITICAL - Game server down or unavailable\n")); result = STATE_CRITICAL; } else if (strstr (ret[2], QSTAT_HOST_TIMEOUT)) { - printf ("CRITICAL - Game server timeout\n"); + printf (_("CRITICAL - Game server timeout\n")); result = STATE_CRITICAL; } else { @@ -156,7 +156,6 @@ main (int argc, char **argv) } - int process_arguments (int argc, char **argv) { @@ -199,9 +198,7 @@ process_arguments (int argc, char **argv) switch (c) { case '?': /* args not parsable */ - printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); - print_usage (); - exit (STATE_UNKNOWN); + usage2 (_("Unknown argument"), optarg); case 'h': /* help */ print_help (); exit (STATE_OK); @@ -269,6 +266,7 @@ process_arguments (int argc, char **argv) return validate_arguments (); } + int validate_arguments (void) { @@ -291,9 +289,6 @@ validate_arguments (void) } - - - void print_help (void) { |