[dovecot-cvs] dovecot/src/plugins/quota quota-dirsize.c, 1.14, 1.15 quota.c, 1.14, 1.15
cras at dovecot.org
cras at dovecot.org
Sun Sep 10 15:48:40 EEST 2006
Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv24049/plugins/quota
Modified Files:
quota-dirsize.c quota.c
Log Message:
Replaced ARRAY_CREATE() macro with [ipt]_array_init() macros. The macro
has no side effects so it might as well be lowercased.
Index: quota-dirsize.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-dirsize.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- quota-dirsize.c 10 Sep 2006 12:33:31 -0000 1.14
+++ quota-dirsize.c 10 Sep 2006 12:48:35 -0000 1.15
@@ -153,7 +153,7 @@
bool is_file;
t_push();
- ARRAY_CREATE(&paths, pool_datastack_create(), 8);
+ t_array_init(&paths, 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.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- quota.c 10 Sep 2006 12:33:31 -0000 1.14
+++ quota.c 10 Sep 2006 12:48:35 -0000 1.15
@@ -42,8 +42,8 @@
quota = i_new(struct quota, 1);
quota->test_alloc = quota_default_test_alloc;
- ARRAY_CREATE("a->roots, default_pool, 4);
- ARRAY_CREATE("a->storages, default_pool, 8);
+ i_array_init("a->roots, 4);
+ i_array_init("a->storages, 8);
return quota;
}
@@ -117,7 +117,7 @@
root->name = "";
}
- ARRAY_CREATE(&root->rules, default_pool, 4);
+ i_array_init(&root->rules, 4);
array_create(&root->quota_module_contexts, default_pool,
sizeof(void *), 5);
More information about the dovecot-cvs
mailing list