changeset 17392:973b67dda572

lib-storage: functions returning bool actually return ints Their return values are compared as if they are at least tri-state (-ve, 0, +ve), so really aren't bools at all. Note - this should cause the code to change in behaviour, and thus might introduce regressions as previously all non-zeroes would have been mapped to 1. Signed-off-by: Phil Carmody <phil@dovecot.fi>
author Phil Carmody <phil@dovecot.fi>
date Tue, 27 May 2014 21:17:34 +0300
parents b54844d64ee5
children 8f68543fa7f8
files src/lib-storage/index/mbox/mbox-mail.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-mail.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/lib-storage/index/mbox/mbox-mail.c	Tue May 27 21:17:34 2014 +0300
@@ -149,7 +149,7 @@
 	return 0;
 }
 
-static bool
+static int
 mbox_mail_get_md5_header(struct index_mail *mail, const char **value_r)
 {
 	struct mail *_mail = &mail->mail.mail;
@@ -237,7 +237,7 @@
 	return index_mail_get_special(_mail, field, value_r);
 }
 
-static bool
+static int
 mbox_mail_get_next_offset(struct index_mail *mail, uoff_t *next_offset_r)
 {
 	struct mbox_mailbox *mbox = (struct mbox_mailbox *)mail->mail.mail.box;