[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-mail.c, 1.32, 1.33

tss at dovecot.org tss at dovecot.org
Thu Mar 29 15:49:04 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv17886

Modified Files:
	maildir-mail.c 
Log Message:
Fix for 64bit systems



Index: maildir-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-mail.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- maildir-mail.c	18 Jan 2007 16:57:44 -0000	1.32
+++ maildir-mail.c	29 Mar 2007 12:49:01 -0000	1.33
@@ -120,6 +120,7 @@
 	struct index_mail *mail = (struct index_mail *)_mail;
 	struct index_mail_data *data = &mail->data;
 	struct stat st;
+	uint32_t t;
 
 	(void)index_mail_get_save_date(_mail);
 	if (data->save_date != (time_t)-1)
@@ -128,9 +129,8 @@
 	if (maildir_mail_stat(_mail, &st) < 0)
 		return (time_t)-1;
 
-	data->save_date = st.st_ctime;
-	index_mail_cache_add(mail, MAIL_CACHE_SAVE_DATE,
-			     &data->save_date, sizeof(data->save_date));
+	data->save_date = t = st.st_ctime;
+	index_mail_cache_add(mail, MAIL_CACHE_SAVE_DATE, &t, sizeof(t));
 	return data->save_date;
 }
 



More information about the dovecot-cvs mailing list