Skip to content

Commit

Permalink
Fix -Wstrict-bool compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Nov 16, 2016
1 parent f373f2e commit 17c9926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib-index/mail-index-sync-update.c
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sha3.c
Expand Up @@ -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)
Expand Down

0 comments on commit 17c9926

Please sign in to comment.