[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.189, 1.190

tss at dovecot.org tss at dovecot.org
Wed Nov 1 18:37:02 UTC 2006


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

Modified Files:
	mbox-sync.c 
Log Message:
compiling fix



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -d -r1.189 -r1.190
--- mbox-sync.c	26 Oct 2006 11:28:38 -0000	1.189
+++ mbox-sync.c	1 Nov 2006 18:37:00 -0000	1.190
@@ -786,7 +786,7 @@
 	struct mbox_sync_context *sync_ctx = mail_ctx->sync_ctx;
 	uoff_t end_offset, move_diff, extra_space, needed_space;
 	uint32_t last_seq;
-	array_t ARRAY_DEFINE(keywords_copy, unsigned int);
+	ARRAY_TYPE(keyword_indexes) keywords_copy;
 
 	i_assert(mail_ctx->mail.uid == 0 || mail_ctx->mail.space > 0 ||
 		 mail_ctx->mail.offset == mail_ctx->hdr_offset);
@@ -795,8 +795,7 @@
 		/* mail's keywords are allocated from a pool that's cleared
 		   for each mail. we'll need to copy it to something more
 		   permanent. */
-		ARRAY_CREATE(&keywords_copy, sync_ctx->saved_keywords_pool,
-			     unsigned int,
+		p_array_init(&keywords_copy, sync_ctx->saved_keywords_pool,
 			     array_count(&mail_ctx->mail.keywords));
 		array_append_array(&keywords_copy, &mail_ctx->mail.keywords);
 		mail_ctx->mail.keywords = keywords_copy;



More information about the dovecot-cvs mailing list