diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-02 01:11:01 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-02 01:11:01 (GMT) |
commit | 230d67e18ad368773f2302485d0b55f50f654e3f (patch) | |
tree | 555c1d1dd92d7897e037303bf03f86b2de0f78b9 /plugins/check_load.c | |
parent | 2d1ba3e36b950f05832ea2bd595616fa6cd28c28 (diff) | |
download | monitoring-plugins-230d67e18ad368773f2302485d0b55f50f654e3f.tar.gz |
changed Error: by CRITICAL -
more localization fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@971 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_load.c')
-rw-r--r-- | plugins/check_load.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c index babe84b..616c3e0 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c | |||
@@ -51,9 +51,6 @@ char *status_line; | |||
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | |||
55 | |||
56 | |||
57 | int | 54 | int |
58 | main (int argc, char **argv) | 55 | main (int argc, char **argv) |
59 | { | 56 | { |
@@ -76,7 +73,7 @@ main (int argc, char **argv) | |||
76 | bindtextdomain (PACKAGE, LOCALEDIR); | 73 | bindtextdomain (PACKAGE, LOCALEDIR); |
77 | textdomain (PACKAGE); | 74 | textdomain (PACKAGE); |
78 | 75 | ||
79 | if (process_arguments (argc, argv) == ERROR) | 76 | if (process_arguments (argc, argv) != OK) |
80 | usage (_("check_load: could not parse arguments\n")); | 77 | usage (_("check_load: could not parse arguments\n")); |
81 | 78 | ||
82 | #if HAVE_GETLOADAVG==1 | 79 | #if HAVE_GETLOADAVG==1 |
@@ -162,9 +159,6 @@ main (int argc, char **argv) | |||
162 | 159 | ||
163 | 160 | ||
164 | 161 | ||
165 | |||
166 | |||
167 | |||
168 | /* process command-line arguments */ | 162 | /* process command-line arguments */ |
169 | int | 163 | int |
170 | process_arguments (int argc, char **argv) | 164 | process_arguments (int argc, char **argv) |
@@ -223,7 +217,7 @@ process_arguments (int argc, char **argv) | |||
223 | usage (_("Critical threshold must be float or float triplet!\n")); | 217 | usage (_("Critical threshold must be float or float triplet!\n")); |
224 | break; | 218 | break; |
225 | case 'V': /* version */ | 219 | case 'V': /* version */ |
226 | print_revision (progname, "$Revision$"); | 220 | print_revision (progname, revision); |
227 | exit (STATE_OK); | 221 | exit (STATE_OK); |
228 | case 'h': /* help */ | 222 | case 'h': /* help */ |
229 | print_help (); | 223 | print_help (); |
@@ -271,8 +265,6 @@ process_arguments (int argc, char **argv) | |||
271 | 265 | ||
272 | 266 | ||
273 | 267 | ||
274 | |||
275 | |||
276 | int | 268 | int |
277 | validate_arguments (void) | 269 | validate_arguments (void) |
278 | { | 270 | { |
@@ -299,9 +291,6 @@ validate_arguments (void) | |||
299 | 291 | ||
300 | 292 | ||
301 | 293 | ||
302 | |||
303 | |||
304 | |||
305 | void | 294 | void |
306 | print_help (void) | 295 | print_help (void) |
307 | { | 296 | { |