diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-01 06:04:01 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-01 06:04:01 +0000 |
commit | 71fcc19db98094c13b5217a32e390d3336560ace (patch) | |
tree | 4bee0c63a3c206b85217f72668f1961fa8c49946 /plugins/check_dummy.c | |
parent | 5133eb547102d5dfd19c064449ff031f994562e4 (diff) | |
download | monitoring-plugins-71fcc19db98094c13b5217a32e390d3336560ace.tar.gz |
mark for transaltion
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@627 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dummy.c')
-rw-r--r-- | plugins/check_dummy.c | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c index ca37e98e..c2f1f50d 100644 --- a/plugins/check_dummy.c +++ b/plugins/check_dummy.c @@ -38,9 +38,31 @@ #include "utils.h" const char *progname = "check_dummy"; +const char *revision = "$Revision$"; +const char *copyright = "1999-2003"; +const char *email = "nagiosplug-devel@lists.sourceforge.net"; -void print_help (const char *); -void print_usage (const char *); +void +print_usage (void) +{ + printf (_("Usage: %s <integer state>\n"), progname); +} + +void +print_help (void) +{ + print_revision (progname, revision); + + printf (_(COPYRIGHT), copyright, email); + + print_usage (); + + printf (_(HELP_VRSN)); + + printf (_("\n\ +This plugin will simply return the state corresponding to the numeric value\n\ +of the <state> argument.\n")); +} int main (int argc, char **argv) @@ -48,19 +70,19 @@ main (int argc, char **argv) int result; if (argc != 2) { - printf ("Incorrect number of arguments supplied\n"); + printf (_("Incorrect number of arguments supplied\n")); exit (STATE_UNKNOWN); } else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) { - print_revision (argv[0], "$Revision$"); + print_revision (progname, revision); exit (STATE_OK); } else if (strcmp (argv[1], "-h") == 0 || strcmp (argv[1], "--help") == 0) { - print_help (argv[0]); + print_help (); exit (STATE_OK); } else if (!is_integer (argv[1])) { - print_usage (argv[0]); + print_usage (); exit (STATE_UNKNOWN); } result = atoi (argv[1]); @@ -82,21 +104,3 @@ main (int argc, char **argv) return result; } - -void -print_help (const char *cmd) -{ - print_revision (cmd, "$Revision$"); - printf ("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n" - "License: GPL\n\n"); - print_usage (cmd); - printf - ("\nThis plugin will simply return the state corresponding to the numeric value\n" - "of the <state> argument.\n"); -} - -void -print_usage (const char *cmd) -{ - printf ("Usage: %s <integer state>\n", cmd); -} |