[dovecot-cvs] dovecot/src/lib-index mail-index-transaction.c, 1.75, 1.76

cras at dovecot.org cras at dovecot.org
Wed May 3 01:05:12 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv12515

Modified Files:
	mail-index-transaction.c 
Log Message:
Fixes to updating keywords



Index: mail-index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-transaction.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- mail-index-transaction.c	24 Apr 2006 09:17:14 -0000	1.75
+++ mail-index-transaction.c	2 May 2006 22:05:09 -0000	1.76
@@ -320,8 +320,8 @@
 					      &ext_rec_array_count);
 	for (j = 0; j < ext_rec_array_count; j++) {
 		array_t *old_array = &ext_rec_arrays[j];
-		ARRAY_SET_TYPE(old_array, void *);
-		array_t ARRAY_DEFINE(new_array, void *);
+		ARRAY_SET_TYPE(old_array, void);
+		array_t new_array;
 		unsigned int ext_count;
 		const uint32_t *ext_rec;
 		uint32_t seq;
@@ -896,7 +896,7 @@
 				enum modify_type modify_type,
 				struct mail_keywords *keywords)
 {
-	struct mail_index_transaction_keyword_update **ku, *u;
+	struct mail_index_transaction_keyword_update *u;
 	unsigned int i, ku_count;
 
 	i_assert(seq > 0 &&
@@ -939,13 +939,13 @@
 	case MODIFY_REPLACE:
 		/* Remove sequence from all add/remove arrays */
 		if (array_is_created(&t->keyword_updates)) {
-			ku = array_get_modifyable(&t->keyword_updates,
-						  &ku_count);
+			u = array_get_modifyable(&t->keyword_updates,
+						 &ku_count);
 			for (i = 0; i < ku_count; i++) {
-				seq_range_array_remove(&ku[i]->add_seq, seq);
+				seq_range_array_remove(&u[i].add_seq, seq);
 				if (seq < t->first_new_seq) {
 					seq_range_array_remove(
-						&ku[i]->remove_seq, seq);
+						&u[i].remove_seq, seq);
 				}
 			}
 		}



More information about the dovecot-cvs mailing list