summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-10-15 19:01:25 +0200
committerGitHub <noreply@github.com>2023-10-15 19:01:25 +0200
commitfff1014d1323980d5e969f31a5a17132482422ac (patch)
tree0d0980d41f95385cc0137ec86e7a1cea0065e04c /lib/utils_base.h
parentb1801c10846283176622db21974fe5003602630d (diff)
parentddbabaa3b659bed9dcf5c5a2bfc430fb816277c7 (diff)
downloadmonitoring-plugins-fff1014d1323980d5e969f31a5a17132482422ac.tar.gz
Merge pull request #1937 from RincewindsHat/replace_booleans_in_lib
Replace old school booleans in lib
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