diff options
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r-- | lib/utils_base.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h index 9cb4276..80b8743 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h | |||
@@ -6,7 +6,7 @@ | |||
6 | # include "sha256.h" | 6 | # include "sha256.h" |
7 | #endif | 7 | #endif |
8 | 8 | ||
9 | /* This file holds header information for thresholds - use this in preference to | 9 | /* This file holds header information for thresholds - use this in preference to |
10 | individual plugin logic */ | 10 | individual plugin logic */ |
11 | 11 | ||
12 | /* This has not been merged with utils.h because of problems with | 12 | /* This has not been merged with utils.h because of problems with |
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | typedef struct range_struct { | 22 | typedef struct range_struct { |
23 | double start; | 23 | double start; |
24 | int start_infinity; /* FALSE (default) or TRUE */ | 24 | bool start_infinity; |
25 | double end; | 25 | double end; |
26 | int end_infinity; | 26 | int end_infinity; |
27 | int alert_on; /* OUTSIDE (default) or INSIDE */ | 27 | int alert_on; /* OUTSIDE (default) or INSIDE */ |
@@ -61,7 +61,7 @@ range *parse_range_string (char *); | |||
61 | int _set_thresholds(thresholds **, char *, char *); | 61 | int _set_thresholds(thresholds **, char *, char *); |
62 | void set_thresholds(thresholds **, char *, char *); | 62 | void set_thresholds(thresholds **, char *, char *); |
63 | void print_thresholds(const char *, thresholds *); | 63 | void print_thresholds(const char *, thresholds *); |
64 | int check_range(double, range *); | 64 | bool check_range(double, range *); |
65 | int get_status(double, thresholds *); | 65 | int get_status(double, thresholds *); |
66 | 66 | ||
67 | /* Handle timeouts */ | 67 | /* Handle timeouts */ |
@@ -79,7 +79,7 @@ void die (int, const char *, ...) __attribute__((noreturn,format(printf, 2, 3))) | |||
79 | #define NP_RANGE_UNPARSEABLE 1 | 79 | #define NP_RANGE_UNPARSEABLE 1 |
80 | #define NP_WARN_WITHIN_CRIT 2 | 80 | #define NP_WARN_WITHIN_CRIT 2 |
81 | 81 | ||
82 | /* a simple check to see if we're running as root. | 82 | /* a simple check to see if we're running as root. |
83 | * returns zero on failure, nonzero on success */ | 83 | * returns zero on failure, nonzero on success */ |
84 | int np_check_if_root(void); | 84 | int np_check_if_root(void); |
85 | 85 | ||