Mercurial > dovecot > core-2.2
changeset 15070:8e29272c35fa
lib-imap-storage: imap_msgpart_size() should return size as uoff_t, not size_t
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2012 01:06:04 +0300 |
parents | 9d684784de9b |
children | 97079269a703 |
files | src/imap/imap-fetch-body.c src/lib-imap-storage/imap-msgpart.c src/lib-imap-storage/imap-msgpart.h |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-fetch-body.c Sun Sep 16 01:02:10 2012 +0300 +++ b/src/imap/imap-fetch-body.c Sun Sep 16 01:06:04 2012 +0300 @@ -155,7 +155,7 @@ struct imap_fetch_body_data *body) { string_t *str; - size_t size; + uoff_t size; if (mail == NULL) { imap_msgpart_free(&body->msgpart);
--- a/src/lib-imap-storage/imap-msgpart.c Sun Sep 16 01:02:10 2012 +0300 +++ b/src/lib-imap-storage/imap-msgpart.c Sun Sep 16 01:06:04 2012 +0300 @@ -701,7 +701,7 @@ } int imap_msgpart_size(struct mail *mail, struct imap_msgpart *msgpart, - size_t *size_r) + uoff_t *size_r) { struct imap_msgpart_open_result result; struct message_part *part;
--- a/src/lib-imap-storage/imap-msgpart.h Sun Sep 16 01:02:10 2012 +0300 +++ b/src/lib-imap-storage/imap-msgpart.h Sun Sep 16 01:06:04 2012 +0300 @@ -43,7 +43,7 @@ struct imap_msgpart_open_result *result_r); /* Return msgpart's size without actually opening the stream (if possible). */ int imap_msgpart_size(struct mail *mail, struct imap_msgpart *msgpart, - size_t *size_r); + uoff_t *size_r); /* Return msgpart's IMAP BODYPARTSTRUCTURE */ int imap_msgpart_bodypartstructure(struct mail *mail,