]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Fix -Wstrict-bool compiler warnings.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 15 Nov 2016 21:56:19 +0000 (23:56 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 16 Nov 2016 10:24:32 +0000 (12:24 +0200)
src/lib-index/mail-index-sync-update.c
src/lib/sha3.c

index adaea5b6e550699d10f534370548372da0d09018..40cb4a9bea85f1da2d833d3c4b5ead4f9abfc6e9 100644 (file)
@@ -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. */
index 6aa97df7e3c666b9e1d73e869f6b59abc2b2bd2e..d1e298954fc963fa1c21b7872b40bf08ec3d6f25 100644 (file)
@@ -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)