aboutsummaryrefslogtreecommitdiff
path: root/lib/messages.c
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-10-07 11:44:05 +0300
committerDavid Bremner <david@tethera.net>2017-10-09 22:27:16 -0300
commit008a5e92eb157e2bb8622cb2fbf644deba5ba4b4 (patch)
tree12c403226e076d230ac54fa59c98726fcafefb38 /lib/messages.c
parent0f314c0c99befea599a68bea51d759b4133efef6 (diff)
lib: convert notmuch_bool_t to stdbool internally
C99 stdbool turned 18 this year. There really is no reason to use our own, except in the library interface for backward compatibility. Convert the lib internally to stdbool.
Diffstat (limited to 'lib/messages.c')
-rw-r--r--lib/messages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/messages.c b/lib/messages.c
index b5363bb8..a88f974f 100644
--- a/lib/messages.c
+++ b/lib/messages.c
@@ -68,7 +68,7 @@ _notmuch_messages_create (notmuch_message_list_t *list)
if (unlikely (messages == NULL))
return NULL;
- messages->is_of_list_type = TRUE;
+ messages->is_of_list_type = true;
messages->iterator = list->head;
return messages;
@@ -93,7 +93,7 @@ notmuch_bool_t
notmuch_messages_valid (notmuch_messages_t *messages)
{
if (messages == NULL)
- return FALSE;
+ return false;
if (! messages->is_of_list_type)
return _notmuch_mset_messages_valid (messages);