[dovecot-cvs] dovecot/src/auth auth-master-listener.c, 1.9, 1.10 userdb-static.c, 1.20, 1.21
cras at dovecot.org
cras at dovecot.org
Sun Sep 10 15:48:14 EEST 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv24049/auth
Modified Files:
auth-master-listener.c userdb-static.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: auth-master-listener.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-master-listener.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- auth-master-listener.c 10 Sep 2006 12:32:58 -0000 1.9
+++ auth-master-listener.c 10 Sep 2006 12:48:12 -0000 1.10
@@ -30,9 +30,9 @@
listener = i_new(struct auth_master_listener, 1);
listener->auth = auth;
listener->pid = (unsigned int)getpid();
- ARRAY_CREATE(&listener->sockets, default_pool, 16);
- ARRAY_CREATE(&listener->masters, default_pool, 16);
- ARRAY_CREATE(&listener->clients, default_pool, 16);
+ i_array_init(&listener->sockets, 16);
+ i_array_init(&listener->masters, 16);
+ i_array_init(&listener->clients, 16);
auth_client_connections_init(listener);
array_append(&master_listeners, &listener, 1);
@@ -165,7 +165,7 @@
void auth_master_listeners_init(void)
{
- ARRAY_CREATE(&master_listeners, default_pool, 2);
+ i_array_init(&master_listeners, 2);
}
void auth_master_listeners_deinit(void)
Index: userdb-static.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/userdb-static.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- userdb-static.c 10 Sep 2006 12:32:58 -0000 1.20
+++ userdb-static.c 10 Sep 2006 12:48:12 -0000 1.21
@@ -67,7 +67,7 @@
gid = (gid_t)-1;
tmp = t_strsplit_spaces(args, " ");
- ARRAY_CREATE(&module->template, auth_userdb->auth->pool,
+ p_array_init(&module->template, auth_userdb->auth->pool,
strarray_length(tmp));
t_push();
More information about the dovecot-cvs
mailing list