summaryrefslogtreecommitdiffstats
path: root/plugins/check_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_load.c')
-rw-r--r--plugins/check_load.c15
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
57int 54int
58main (int argc, char **argv) 55main (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 */
169int 163int
170process_arguments (int argc, char **argv) 164process_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
276int 268int
277validate_arguments (void) 269validate_arguments (void)
278{ 270{
@@ -299,9 +291,6 @@ validate_arguments (void)
299 291
300 292
301 293
302
303
304
305void 294void
306print_help (void) 295print_help (void)
307{ 296{