summaryrefslogtreecommitdiffstats
path: root/sprinter-text.c
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-10-07 11:44:04 +0300
committerDavid Bremner <david@tethera.net>2017-10-09 22:24:02 -0300
commit0f314c0c99befea599a68bea51d759b4133efef6 (patch)
tree6d7fa97122e87bf6dcdb221267ac052f48331f59 /sprinter-text.c
parent54aef071590cb23f61da943daa29080cf7446696 (diff)
cli: convert notmuch_bool_t to stdbool
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 cli and test binaries to stdbool.
Diffstat (limited to 'sprinter-text.c')
-rw-r--r--sprinter-text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sprinter-text.c b/sprinter-text.c
index 7779488f..648b54b1 100644
--- a/sprinter-text.c
+++ b/sprinter-text.c
@@ -21,7 +21,7 @@ struct sprinter_text {
/* A flag to indicate if this is the first tag. Used in list of tags
* for summary.
*/
- notmuch_bool_t first_tag;
+ bool first_tag;
};
static void
@@ -52,7 +52,7 @@ text_integer (struct sprinter *sp, int val)
}
static void
-text_boolean (struct sprinter *sp, notmuch_bool_t val)
+text_boolean (struct sprinter *sp, bool val)
{
struct sprinter_text *sptxt = (struct sprinter_text *) sp;
@@ -128,7 +128,7 @@ sprinter_text_create (const void *ctx, FILE *stream)
.map_key = text_map_key,
.separator = text_separator,
.set_prefix = text_set_prefix,
- .is_text_printer = TRUE,
+ .is_text_printer = true,
},
};
struct sprinter_text *res;