From b28c936bd281c4b7ff9ed0f621b840f6d5a4b328 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 23 Jan 2013 14:29:25 +0100 Subject: 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.. --- common/library.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/library.c') 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 (); } -- cgit v1.1