diff options
-rw-r--r-- | lib/utils_base.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c index 18fb3f2..db21ea1 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) { | |||
151 | int | 151 | int |
152 | check_range(double value, range *my_range) | 152 | check_range(double value, range *my_range) |
153 | { | 153 | { |
154 | int false = FALSE; | 154 | int no = FALSE; |
155 | int true = TRUE; | 155 | int yes = TRUE; |
156 | 156 | ||
157 | if (my_range->alert_on == INSIDE) { | 157 | if (my_range->alert_on == INSIDE) { |
158 | false = TRUE; | 158 | no = TRUE; |
159 | true = FALSE; | 159 | yes = FALSE; |
160 | } | 160 | } |
161 | 161 | ||
162 | if (my_range->end_infinity == FALSE && my_range->start_infinity == FALSE) { | 162 | if (my_range->end_infinity == FALSE && my_range->start_infinity == FALSE) { |
163 | if ((my_range->start <= value) && (value <= my_range->end)) { | 163 | if ((my_range->start <= value) && (value <= my_range->end)) { |
164 | return false; | 164 | return no; |
165 | } else { | 165 | } else { |
166 | return true; | 166 | return yes; |
167 | } | 167 | } |
168 | } else if (my_range->start_infinity == FALSE && my_range->end_infinity == TRUE) { | 168 | } else if (my_range->start_infinity == FALSE && my_range->end_infinity == TRUE) { |
169 | if (my_range->start <= value) { | 169 | if (my_range->start <= value) { |
170 | return false; | 170 | return no; |
171 | } else { | 171 | } else { |
172 | return true; | 172 | return yes; |
173 | } | 173 | } |
174 | } else if (my_range->start_infinity == TRUE && my_range->end_infinity == FALSE) { | 174 | } else if (my_range->start_infinity == TRUE && my_range->end_infinity == FALSE) { |
175 | if (value <= my_range->end) { | 175 | if (value <= my_range->end) { |
176 | return false; | 176 | return no; |
177 | } else { | 177 | } else { |
178 | return true; | 178 | return yes; |
179 | } | 179 | } |
180 | } else { | 180 | } else { |
181 | return false; | 181 | return no; |
182 | } | 182 | } |
183 | } | 183 | } |
184 | 184 | ||