diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-15 19:01:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-15 19:01:25 +0200 |
commit | fff1014d1323980d5e969f31a5a17132482422ac (patch) | |
tree | 0d0980d41f95385cc0137ec86e7a1cea0065e04c /lib/utils_disk.h | |
parent | b1801c10846283176622db21974fe5003602630d (diff) | |
parent | ddbabaa3b659bed9dcf5c5a2bfc430fb816277c7 (diff) | |
download | monitoring-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_disk.h')
-rw-r--r-- | lib/utils_disk.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/utils_disk.h b/lib/utils_disk.h index 6b83ac74..5b2caf23 100644 --- a/lib/utils_disk.h +++ b/lib/utils_disk.h | |||
@@ -39,14 +39,14 @@ struct parameter_list | |||
39 | }; | 39 | }; |
40 | 40 | ||
41 | void np_add_name (struct name_list **list, const char *name); | 41 | void np_add_name (struct name_list **list, const char *name); |
42 | int np_find_name (struct name_list *list, const char *name); | 42 | bool np_find_name (struct name_list *list, const char *name); |
43 | int np_seen_name (struct name_list *list, const char *name); | 43 | bool np_seen_name (struct name_list *list, const char *name); |
44 | int np_add_regex (struct regex_list **list, const char *regex, int cflags); | 44 | int np_add_regex (struct regex_list **list, const char *regex, int cflags); |
45 | bool np_find_regmatch (struct regex_list *list, const char *name); | 45 | bool np_find_regmatch (struct regex_list *list, const char *name); |
46 | struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name); | 46 | struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name); |
47 | struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name); | 47 | struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name); |
48 | struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev); | 48 | struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev); |
49 | 49 | ||
50 | int search_parameter_list (struct parameter_list *list, const char *name); | 50 | int search_parameter_list (struct parameter_list *list, const char *name); |
51 | void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, int exact); | 51 | void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, bool exact); |
52 | int np_regex_match_mount_entry (struct mount_entry* me, regex_t* re); | 52 | bool np_regex_match_mount_entry (struct mount_entry* me, regex_t* re); |