aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-09-22 17:48:33 +0000
committerGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-09-22 17:48:33 +0000
commitbb32ecb79c6e4d7161f0bee54e4197fca64d23d6 (patch)
treeaaa5d91b501882da1957c9199e278f2f1f21da0b /plugins
parentd23b17e6567d8eb983956b36b31a383f3cc639d2 (diff)
downloadmonitoring-plugins-bb32ecb79c6e4d7161f0bee54e4197fca64d23d6.tar.gz
substituted bool/true/false with int/TRUE/FALSE (discussed on np-devel)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1787 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_disk.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index d2674097..088c589e 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -150,7 +150,7 @@ char *warn_usedinodes_percent = NULL;
char *crit_usedinodes_percent = NULL;
char *warn_freeinodes_percent = NULL;
char *crit_freeinodes_percent = NULL;
-bool path_selected = false;
+int path_selected = FALSE;
char *group = NULL;
@@ -195,7 +195,7 @@ main (int argc, char **argv)
/* If a list of paths has not been selected, find entire
mount list and create list of paths
*/
- if (path_selected == false) {
+ if (path_selected == FALSE) {
for (me = mount_list; me; me = me->me_next) {
if (! (path = np_find_parameter(path_select_list, me->me_mountdir))) {
path = np_add_parameter(&path_select_list, me->me_mountdir);
@@ -626,7 +626,7 @@ process_arguments (int argc, char **argv)
se->group = group;
set_all_thresholds(se);
np_set_best_match(se, mount_list, exact_match);
- path_selected = true;
+ path_selected = TRUE;
break;
case 'x': /* exclude path or partition */
np_add_name(&dp_exclude_list, optarg);
@@ -713,7 +713,7 @@ process_arguments (int argc, char **argv)
for (me = mount_list; me; me = me->me_next) {
if (np_regex_match_mount_entry(me, &re)) {
- fnd = true;
+ fnd = TRUE;
if (verbose > 3)
printf("%s %s matching expression %s\n", me->me_devname, me->me_mountdir, optarg);
@@ -730,8 +730,8 @@ process_arguments (int argc, char **argv)
die (STATE_UNKNOWN, "DISK %s: %s - %s\n",_("UNKNOWN"),
_("Regular expression did not match any path or disk"), optarg);
- fnd = false;
- path_selected = true;
+ fnd = FALSE;
+ path_selected = TRUE;
np_set_best_match(path_select_list, mount_list, exact_match);
cflags = default_cflags;
@@ -741,7 +741,7 @@ process_arguments (int argc, char **argv)
break;
case 'C':
/* add all mount entries to path_select list if no partitions have been explicitly defined using -p */
- if (path_selected == false) {
+ if (path_selected == FALSE) {
struct mount_entry *me;
struct parameter_list *path;
for (me = mount_list; me; me = me->me_next) {
@@ -765,7 +765,7 @@ process_arguments (int argc, char **argv)
warn_freeinodes_percent = NULL;
crit_freeinodes_percent = NULL;
- path_selected = false;
+ path_selected = FALSE;
group = NULL;
break;
case 'V': /* version */
@@ -789,7 +789,7 @@ process_arguments (int argc, char **argv)
if (argc > c && path == NULL) {
se = np_add_parameter(&path_select_list, strdup(argv[c++]));
- path_selected = true;
+ path_selected = TRUE;
set_all_thresholds(se);
}