summaryrefslogtreecommitdiff
path: root/p11-kit/conf.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-01-23 14:29:25 +0100
committerStef Walter <stefw@gnome.org>2013-01-23 14:29:25 +0100
commitb28c936bd281c4b7ff9ed0f621b840f6d5a4b328 (patch)
tree9645b90b794908d378970aafd73e7726c5267341 /p11-kit/conf.h
parent4671352fe2a4f56c6707322dcab0015e2e8600c4 (diff)
Use the stdbool.h C99 bool type
It was getting really wild knowing whether a function returning an int would return -1 on failure or 0 or whether the int return value was actually a number etc..
Diffstat (limited to 'p11-kit/conf.h')
-rw-r--r--p11-kit/conf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/p11-kit/conf.h b/p11-kit/conf.h
index b70666d..3895b0c 100644
--- a/p11-kit/conf.h
+++ b/p11-kit/conf.h
@@ -50,7 +50,7 @@ enum {
CONF_USER_ONLY
};
-int _p11_conf_merge_defaults (p11_dict *config,
+bool _p11_conf_merge_defaults (p11_dict *config,
p11_dict *defaults);
/* Returns a hash of char *key -> char *value */
@@ -67,7 +67,7 @@ p11_dict * _p11_conf_load_modules (int user_mode,
const char *system_dir,
const char *user_dir);
-int _p11_conf_parse_boolean (const char *string,
- int default_value);
+bool _p11_conf_parse_boolean (const char *string,
+ bool default_value);
#endif /* __CONF_H__ */