aboutsummaryrefslogtreecommitdiff
path: root/lib/utils_base.c
diff options
context:
space:
mode:
authorGravatar Holger Weiss <hweiss@users.sourceforge.net> 2007-01-27 17:49:08 +0000
committerGravatar Holger Weiss <hweiss@users.sourceforge.net> 2007-01-27 17:49:08 +0000
commit35fcc425a67d39ad9485e1a542325d4afeddfdc6 (patch)
tree65ce63ead5648b6c6572f479757f031a6618d79d /lib/utils_base.c
parent4db299b5e779d9315aa49e66ff875e2efeee7fe2 (diff)
downloadmonitoring-plugins-35fcc425a67d39ad9485e1a542325d4afeddfdc6.tar.gz
Change the variable names `true' and `false' (which are keywords in C99)
to `yes' and `no'. Fixes compilation when using SGI's MIPSpro c99(1). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1588 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/utils_base.c')
-rw-r--r--lib/utils_base.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c
index 18fb3f25..db21ea15 100644
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
@@ -151,34 +151,34 @@ void print_thresholds(const char *threshold_name, thresholds *my_threshold) {
int
check_range(double value, range *my_range)
{
- int false = FALSE;
- int true = TRUE;
+ int no = FALSE;
+ int yes = TRUE;
if (my_range->alert_on == INSIDE) {
- false = TRUE;
- true = FALSE;
+ no = TRUE;
+ yes = FALSE;
}
if (my_range->end_infinity == FALSE && my_range->start_infinity == FALSE) {
if ((my_range->start <= value) && (value <= my_range->end)) {
- return false;
+ return no;
} else {
- return true;
+ return yes;
}
} else if (my_range->start_infinity == FALSE && my_range->end_infinity == TRUE) {
if (my_range->start <= value) {
- return false;
+ return no;
} else {
- return true;
+ return yes;
}
} else if (my_range->start_infinity == TRUE && my_range->end_infinity == FALSE) {
if (value <= my_range->end) {
- return false;
+ return no;
} else {
- return true;
+ return yes;
}
} else {
- return false;
+ return no;
}
}