diff options
| author | Jani Nikula <jani@nikula.org> | 2017-10-07 11:44:05 +0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-10-09 22:27:16 -0300 |
| commit | 008a5e92eb157e2bb8622cb2fbf644deba5ba4b4 (patch) | |
| tree | 12c403226e076d230ac54fa59c98726fcafefb38 /lib/message-property.cc | |
| parent | 0f314c0c99befea599a68bea51d759b4133efef6 (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/message-property.cc')
| -rw-r--r-- | lib/message-property.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/message-property.cc b/lib/message-property.cc index f32d5550..d72c74c3 100644 --- a/lib/message-property.cc +++ b/lib/message-property.cc @@ -38,7 +38,7 @@ notmuch_message_get_property (notmuch_message_t *message, const char *key, const static notmuch_status_t _notmuch_message_modify_property (notmuch_message_t *message, const char *key, const char *value, - notmuch_bool_t delete_it) + bool delete_it) { notmuch_private_status_t private_status; notmuch_status_t status; @@ -76,13 +76,13 @@ _notmuch_message_modify_property (notmuch_message_t *message, const char *key, c notmuch_status_t notmuch_message_add_property (notmuch_message_t *message, const char *key, const char *value) { - return _notmuch_message_modify_property (message, key, value, FALSE); + return _notmuch_message_modify_property (message, key, value, false); } notmuch_status_t notmuch_message_remove_property (notmuch_message_t *message, const char *key, const char *value) { - return _notmuch_message_modify_property (message, key, value, TRUE); + return _notmuch_message_modify_property (message, key, value, true); } notmuch_status_t |
