[dovecot-cvs] dovecot/src/plugins/quota quota-dirsize.c, 1.13, 1.14 quota.c, 1.13, 1.14

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


Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv1034/plugins/quota

Modified Files:
	quota-dirsize.c quota.c 
Log Message:
Removed type parameter from ARRAY_CREATE since it's not needed anymore.



Index: quota-dirsize.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-dirsize.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- quota-dirsize.c	30 Jul 2006 17:58:43 -0000	1.13
+++ quota-dirsize.c	10 Sep 2006 12:33:31 -0000	1.14
@@ -153,8 +153,7 @@
 	bool is_file;
 
 	t_push();
-	ARRAY_CREATE(&paths, pool_datastack_create(),
-		     struct quota_count_path, 8);
+	ARRAY_CREATE(&paths, pool_datastack_create(), 8);
 	storages = array_get(&root->quota->storages, &count);
 	for (i = 0; i < count; i++) {
 		path = mail_storage_get_mailbox_path(storages[i], "", &is_file);

Index: quota.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- quota.c	30 Jul 2006 18:32:07 -0000	1.13
+++ quota.c	10 Sep 2006 12:33:31 -0000	1.14
@@ -42,8 +42,8 @@
 
 	quota = i_new(struct quota, 1);
 	quota->test_alloc = quota_default_test_alloc;
-	ARRAY_CREATE(&quota->roots, default_pool, struct quota_root *, 4);
-	ARRAY_CREATE(&quota->storages, default_pool, struct mail_storage *, 8);
+	ARRAY_CREATE(&quota->roots, default_pool, 4);
+	ARRAY_CREATE(&quota->storages, default_pool, 8);
 
 	return quota;
 }
@@ -117,8 +117,9 @@
 		root->name = "";
 	}
 
-	ARRAY_CREATE(&root->rules, default_pool, struct quota_rule, 4);
-	ARRAY_CREATE(&root->quota_module_contexts, default_pool, void *, 5);
+	ARRAY_CREATE(&root->rules, default_pool, 4);
+	array_create(&root->quota_module_contexts, default_pool,
+		     sizeof(void *), 5);
 
 	array_append(&quota->roots, &root, 1);
 



More information about the dovecot-cvs mailing list