diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-03 00:55:28 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-03 00:55:28 +0000 |
commit | 016d33230eb4fffd7e1f5644ce4901cb4d01f4e3 (patch) | |
tree | 1a6f29dcfd937bccffb66467127613b660d55365 /plugins/check_hpjd.c | |
parent | 3f05eb7fcb71942c90fa7d5796c3d18ed62443cf (diff) | |
download | monitoring-plugins-016d33230eb4fffd7e1f5644ce4901cb4d01f4e3.tar.gz |
bump copyright year
initialize result to STATE_UNKNOW in place of STATE_OK
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@982 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_hpjd.c')
-rw-r--r-- | plugins/check_hpjd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index 7c56e5dc..7ad950a4 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c | |||
@@ -17,6 +17,11 @@ | |||
17 | * $Id$ | 17 | * $Id$ |
18 | *****************************************************************************/ | 18 | *****************************************************************************/ |
19 | 19 | ||
20 | const char *progname = "check_hpjd"; | ||
21 | const char *revision = "$Revision$"; | ||
22 | const char *copyright = "2000-2004"; | ||
23 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | ||
24 | |||
20 | #include "common.h" | 25 | #include "common.h" |
21 | #include "popen.h" | 26 | #include "popen.h" |
22 | #include "utils.h" | 27 | #include "utils.h" |
@@ -24,10 +29,6 @@ | |||
24 | 29 | ||
25 | #define DEFAULT_COMMUNITY "public" | 30 | #define DEFAULT_COMMUNITY "public" |
26 | 31 | ||
27 | const char *progname = "check_hpjd"; | ||
28 | const char *revision = "$Revision$"; | ||
29 | const char *copyright = "2000-2003"; | ||
30 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | ||
31 | 32 | ||
32 | const char *option_summary = "-H host [-C community]\n"; | 33 | const char *option_summary = "-H host [-C community]\n"; |
33 | 34 | ||
@@ -59,7 +60,7 @@ int | |||
59 | main (int argc, char **argv) | 60 | main (int argc, char **argv) |
60 | { | 61 | { |
61 | char command_line[1024]; | 62 | char command_line[1024]; |
62 | int result; | 63 | int result = STATE_UNKNOWN; |
63 | int line; | 64 | int line; |
64 | char input_buffer[MAX_INPUT_BUFFER]; | 65 | char input_buffer[MAX_INPUT_BUFFER]; |
65 | char query_string[512]; | 66 | char query_string[512]; |
@@ -85,7 +86,7 @@ main (int argc, char **argv) | |||
85 | textdomain (PACKAGE); | 86 | textdomain (PACKAGE); |
86 | 87 | ||
87 | if (process_arguments (argc, argv) != TRUE) | 88 | if (process_arguments (argc, argv) != TRUE) |
88 | usage4 (_("Could not parse arguments\n")); | 89 | usage4 (_("Could not parse arguments")); |
89 | 90 | ||
90 | /* removed ' 2>1' at end of command 10/27/1999 - EG */ | 91 | /* removed ' 2>1' at end of command 10/27/1999 - EG */ |
91 | /* create the query string */ | 92 | /* create the query string */ |