[dovecot-cvs] dovecot/src/plugins/acl acl-backend-vfile.c, 1.9, 1.10 acl-cache.c, 1.6, 1.7

cras at dovecot.org cras at dovecot.org
Sun Sep 10 15:48:38 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/acl
In directory talvi:/tmp/cvs-serv24049/plugins/acl

Modified Files:
	acl-backend-vfile.c acl-cache.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: acl-backend-vfile.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-backend-vfile.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- acl-backend-vfile.c	10 Sep 2006 12:33:25 -0000	1.9
+++ acl-backend-vfile.c	10 Sep 2006 12:48:33 -0000	1.10
@@ -124,7 +124,7 @@
 	while (*acl == ' ' || *acl == '\t')
 		acl++;
 
-	ARRAY_CREATE(&rights, pool_datastack_create(), 64);
+	t_array_init(&rights, 64);
 	for (; *acl != '\0' && *acl != ':'; acl++) {
 		for (i = 0; acl_letter_map[i].letter != '\0'; i++) {
 			if (acl_letter_map[i].letter == *acl)

Index: acl-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-cache.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- acl-cache.c	10 Sep 2006 12:33:25 -0000	1.6
+++ acl-cache.c	10 Sep 2006 12:48:33 -0000	1.7
@@ -53,8 +53,7 @@
 	cache->right_name_idx_map =
 		hash_create(default_pool, cache->right_names_pool, 0,
 			    str_hash, (hash_cmp_callback_t *)strcmp);
-	ARRAY_CREATE(&cache->right_idx_name_map, default_pool,
-		     DEFAULT_ACL_RIGHTS_COUNT);
+	i_array_init(&cache->right_idx_name_map, DEFAULT_ACL_RIGHTS_COUNT);
 	return cache;
 }
 



More information about the dovecot-cvs mailing list