summaryrefslogtreecommitdiff
path: root/common/library.c
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 /common/library.c
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 'common/library.c')
-rw-r--r--common/library.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/library.c b/common/library.c
index 48fd0c9..d0c246c 100644
--- a/common/library.c
+++ b/common/library.c
@@ -65,7 +65,7 @@ p11_mutex_t p11_library_mutex;
pthread_once_t p11_library_once;
#endif
-static int print_messages = 1;
+static bool print_messages = true;
void
p11_message_store (const char* msg,
@@ -112,7 +112,7 @@ void
p11_message_quiet (void)
{
p11_lock ();
- print_messages = 0;
+ print_messages = false;
p11_unlock ();
}