aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_load.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-09 06:01:03 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-09 06:01:03 +0000
commita228492c4bea15a3e6e7bdbfd6631611c97fe92c (patch)
tree0d21d5c54a2ab5ec3f4171fab668d390ea09bbaa /plugins/check_load.c
parent024751bac56791b7ae5347404274046e8ba58ccb (diff)
downloadmonitoring-plugins-a228492c4bea15a3e6e7bdbfd6631611c97fe92c.tar.gz
more pedantic compiler warns
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@672 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_load.c')
-rw-r--r--plugins/check_load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 4a38e6ce..bdb1e55d 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -45,7 +45,7 @@ void print_usage (void);
float wload1 = -1, wload5 = -1, wload15 = -1;
float cload1 = -1, cload5 = -1, cload15 = -1;
-char *status_line = "";
+char *status_line;
@@ -72,7 +72,7 @@ main (int argc, char **argv)
float la1, la5, la15;
if (process_arguments (argc, argv) == ERROR)
- usage ("\n");
+ usage ("failed processing arguments\n");
#if HAVE_GETLOADAVG==1
result = getloadavg (la, 3);
@@ -122,7 +122,7 @@ main (int argc, char **argv)
# endif
#endif
- if ((la1 == -1) || (la5 == -1) || (la15 == -1)) {
+ if ((la1 < 0.0) || (la5 < 0.0) || (la15 < 0.0)) {
#if HAVE_GETLOADAVG==1
printf (_("Error in getloadavg()\n"));
#else