[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c, 1.76, 1.77 index-storage.c, 1.74, 1.75

cras at dovecot.org cras at dovecot.org
Tue Apr 26 21:36:51 EEST 2005


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

Modified Files:
	index-mail.c index-storage.c 
Log Message:
Compiler warning fixes when DEBUG enabled.



Index: index-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-mail.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- index-mail.c	16 Apr 2005 19:44:11 -0000	1.76
+++ index-mail.c	26 Apr 2005 18:36:49 -0000	1.77
@@ -651,7 +651,7 @@
 	pool = pool_alloconly_create("mail", 512);
 	mail = p_new(pool, struct index_mail, 1);
 	mail->mail.pool = pool;
-	ARRAY_CREATE(&mail->mail.module_contexts, pool, void *, 5);
+	array_create(&mail->mail.module_contexts, pool, sizeof(void *), 5);
 
 	mail->mail.v = *t->ibox->mail_vfuncs;
 	mail->mail.mail.box = &t->ibox->box;

Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- index-storage.c	8 Apr 2005 13:13:45 -0000	1.74
+++ index-storage.c	26 Apr 2005 18:36:49 -0000	1.75
@@ -46,8 +46,8 @@
 	storage->storage.flags = flags;
 	storage->storage.lock_method = lock_method;
 
-	ARRAY_CREATE(&storage->storage.module_contexts,
-		     storage->storage.pool, void *, 5);
+	array_create(&storage->storage.module_contexts,
+		     storage->storage.pool, sizeof(void *), 5);
 	index_storage_refcount++;
 }
 
@@ -297,8 +297,8 @@
 
 	ibox->box.storage = storage;
 	ibox->box.name = p_strdup(ibox->box.pool, name);
-	ARRAY_CREATE(&ibox->box.module_contexts,
-		     ibox->box.pool, void *, 5);
+	array_create(&ibox->box.module_contexts,
+		     ibox->box.pool, sizeof(void *), 5);
 
 	index_flags = MAIL_INDEX_OPEN_FLAG_CREATE;
 	if ((flags & MAILBOX_OPEN_FAST) != 0)



More information about the dovecot-cvs mailing list