[evolution-data-server] Declare mbox' frompos as goffset, not off_t



commit 4f700fb5ee97f54b8123ee40265ad9b5b832de2e
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 26 20:20:51 2010 +0200

    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 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]