[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync-parse.c, 1.52, 1.53 mbox-sync-update.c, 1.48, 1.49 mbox-sync.c, 1.183, 1.184

cras at dovecot.org cras at dovecot.org
Sun Sep 10 15:33:24 EEST 2006


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

Modified Files:
	mbox-sync-parse.c mbox-sync-update.c mbox-sync.c 
Log Message:
Removed type parameter from ARRAY_CREATE since it's not needed anymore.



Index: mbox-sync-parse.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-parse.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- mbox-sync-parse.c	28 Jun 2006 13:10:53 -0000	1.52
+++ mbox-sync-parse.c	10 Sep 2006 12:33:22 -0000	1.53
@@ -269,7 +269,7 @@
 	/* read keyword indexes to temporary array first */
 	t_push();
 	keyword = t_str_new(128);
-	ARRAY_CREATE(&keyword_list, pool_datastack_create(), unsigned int, 16);
+	ARRAY_CREATE(&keyword_list, pool_datastack_create(), 16);
 
 	for (pos = 0; pos < hdr->full_value_len; ) {
 		if (IS_LWSP_LF(hdr->full_value[pos])) {
@@ -312,7 +312,7 @@
 	if (array_count(&keyword_list) > 0) {
 		ARRAY_CREATE(&ctx->mail.keywords,
 			     ctx->sync_ctx->mail_keyword_pool,
-			     unsigned int, array_count(&keyword_list));
+			     array_count(&keyword_list));
 		array_append_array(&ctx->mail.keywords, &keyword_list);
 	}
 

Index: mbox-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-update.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- mbox-sync-update.c	28 Jun 2006 13:10:53 -0000	1.48
+++ mbox-sync-update.c	10 Sep 2006 12:33:22 -0000	1.49
@@ -439,7 +439,6 @@
 		/* adding first keywords */
 		ARRAY_CREATE(&ctx->mail.keywords,
 			     ctx->sync_ctx->mail_keyword_pool,
-			     unsigned int,
 			     array_count(&mail->keywords));
 		array_append_array(&ctx->mail.keywords,
 				   &mail->keywords);

Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -d -r1.183 -r1.184
--- mbox-sync.c	28 Jun 2006 13:10:53 -0000	1.183
+++ mbox-sync.c	10 Sep 2006 12:33:22 -0000	1.184
@@ -255,7 +255,6 @@
 				/* adding, create the array */
 				ARRAY_CREATE(&mail->keywords,
 					     sync_ctx->mail_keyword_pool,
-					     unsigned int,
 					     I_MIN(10, count - i));
 			}
 			if (mail_index_sync_keywords_apply(&syncs[i],
@@ -463,8 +462,7 @@
 
 		/* get old keywords */
 		t_push();
-		ARRAY_CREATE(&idx_mail.keywords, pool_datastack_create(),
-			     unsigned int, 32);
+		ARRAY_CREATE(&idx_mail.keywords, pool_datastack_create(), 32);
 		if (mail_index_lookup_keywords(sync_ctx->sync_view,
 					       sync_ctx->idx_seq,
 					       &idx_mail.keywords) < 0) {
@@ -1644,10 +1642,8 @@
 	/* make sure we've read the latest keywords in index */
 	(void)mail_index_get_keywords(mbox->ibox.index);
 
-	ARRAY_CREATE(&sync_ctx.mails, default_pool,
-		     struct mbox_sync_mail, 64);
-	ARRAY_CREATE(&sync_ctx.syncs, default_pool,
-		     struct mail_index_sync_rec, 32);
+	ARRAY_CREATE(&sync_ctx.mails, default_pool, 64);
+	ARRAY_CREATE(&sync_ctx.syncs, default_pool, 32);
 
 	sync_ctx.flags = flags;
 	sync_ctx.delay_writes = delay_writes || sync_ctx.mbox->mbox_readonly;



More information about the dovecot-cvs mailing list