summaryrefslogtreecommitdiffstats
path: root/lib/utils_disk.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_disk.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_disk.h')
-rw-r--r--lib/utils_disk.h10
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
41void np_add_name (struct name_list **list, const char *name); 41void np_add_name (struct name_list **list, const char *name);
42int np_find_name (struct name_list *list, const char *name); 42bool np_find_name (struct name_list *list, const char *name);
43int np_seen_name (struct name_list *list, const char *name); 43bool np_seen_name (struct name_list *list, const char *name);
44int np_add_regex (struct regex_list **list, const char *regex, int cflags); 44int np_add_regex (struct regex_list **list, const char *regex, int cflags);
45bool np_find_regmatch (struct regex_list *list, const char *name); 45bool np_find_regmatch (struct regex_list *list, const char *name);
46struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name); 46struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name);
47struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name); 47struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name);
48struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev); 48struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev);
49 49
50int search_parameter_list (struct parameter_list *list, const char *name); 50int search_parameter_list (struct parameter_list *list, const char *name);
51void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, int exact); 51void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, bool exact);
52int np_regex_match_mount_entry (struct mount_entry* me, regex_t* re); 52bool np_regex_match_mount_entry (struct mount_entry* me, regex_t* re);