From: Timo Sirainen Date: Tue, 15 Nov 2016 21:56:19 +0000 (+0200) Subject: Fix -Wstrict-bool compiler warnings. X-Git-Tag: 2.2.27~156 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17c99261a80233145aebd3dce571cf130e9f4e7a;p=thirdparty%2Fdovecot%2Fcore.git Fix -Wstrict-bool compiler warnings. --- diff --git a/src/lib-index/mail-index-sync-update.c b/src/lib-index/mail-index-sync-update.c index adaea5b6e5..40cb4a9bea 100644 --- a/src/lib-index/mail-index-sync-update.c +++ b/src/lib-index/mail-index-sync-update.c @@ -967,7 +967,7 @@ int mail_index_sync_map(struct mail_index_map **_map, "seq=%u offset=%"PRIuUOFF_T": %s " "(initial_mapped=%d, reason=%s)", index->filepath, map->hdr.log_file_seq, start_offset, reason, - index->initial_mapped, sync_reason); + index->initial_mapped ? 1 : 0, sync_reason); (void)mail_index_fsck(index); } /* can't use it. sync by re-reading index. */ diff --git a/src/lib/sha3.c b/src/lib/sha3.c index 6aa97df7e3..d1e298954f 100644 --- a/src/lib/sha3.c +++ b/src/lib/sha3.c @@ -151,7 +151,7 @@ void sha3_loop(void *context, const void *data, size_t len) return; } - if(old_tail) { /* will have one word to process */ + if(old_tail != 0) { /* will have one word to process */ /* endian-independent code follows: */ len -= old_tail; while (old_tail-- > 0)