summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4db299b)
raw | patch | inline | side by side (parent: 4db299b)
author | Holger Weiss <hweiss@users.sourceforge.net> | |
Sat, 27 Jan 2007 17:49:08 +0000 (17:49 +0000) | ||
committer | Holger Weiss <hweiss@users.sourceforge.net> | |
Sat, 27 Jan 2007 17:49:08 +0000 (17:49 +0000) |
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
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1588 f882894a-f735-0410-b71e-b25c423dba1c
lib/utils_base.c | patch | blob | history |
diff --git a/lib/utils_base.c b/lib/utils_base.c
index 18fb3f25143559134128036c286555f0d0505d56..db21ea15b47a746d0762fddca98129a4b1ce589b 100644 (file)
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
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;
}
}