From 4f700fb5ee97f54b8123ee40265ad9b5b832de2e Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 26 May 2010 20:20:51 +0200 Subject: [PATCH] Declare mbox' frompos as goffset, not off_t --- camel/providers/local/camel-mbox-summary.c | 5 ++++- camel/providers/local/camel-mbox-summary.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index 4923ace..df1286f 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -414,10 +414,13 @@ message_info_migrate (CamelFolderSummary *s, FILE *in) mi = CAMEL_FOLDER_SUMMARY_CLASS (camel_mbox_summary_parent_class)->message_info_migrate (s, in); if (mi) { + off_t ot = -1; CamelMboxMessageInfo *mbi = (CamelMboxMessageInfo *)mi; - if (camel_file_util_decode_off_t(in, &mbi->frompos) == -1) + if (camel_file_util_decode_off_t(in, &ot) == -1) goto error; + + mbi->frompos = (goffset) ot; } return mi; diff --git a/camel/providers/local/camel-mbox-summary.h b/camel/providers/local/camel-mbox-summary.h index 5b4f95c..bc0a150 100644 --- a/camel/providers/local/camel-mbox-summary.h +++ b/camel/providers/local/camel-mbox-summary.h @@ -57,7 +57,7 @@ typedef struct _CamelMboxMessageContentInfo { typedef struct _CamelMboxMessageInfo { CamelLocalMessageInfo info; - off_t frompos; + goffset frompos; } CamelMboxMessageInfo; struct _CamelMboxSummary { -- 2.7.4