summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r--lib/utils_base.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h
index 9cb42767..80b87435 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
22typedef struct range_struct { 22typedef 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 *);
61int _set_thresholds(thresholds **, char *, char *); 61int _set_thresholds(thresholds **, char *, char *);
62void set_thresholds(thresholds **, char *, char *); 62void set_thresholds(thresholds **, char *, char *);
63void print_thresholds(const char *, thresholds *); 63void print_thresholds(const char *, thresholds *);
64int check_range(double, range *); 64bool check_range(double, range *);
65int get_status(double, thresholds *); 65int 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 */
84int np_check_if_root(void); 84int np_check_if_root(void);
85 85