[dovecot-cvs] dovecot/src/lib-sql driver-mysql.c, 1.24, 1.25 sql-api.c, 1.12, 1.13

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


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

Modified Files:
	driver-mysql.c sql-api.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: driver-mysql.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-sql/driver-mysql.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- driver-mysql.c	10 Sep 2006 12:33:12 -0000	1.24
+++ driver-mysql.c	10 Sep 2006 12:48:22 -0000	1.25
@@ -252,7 +252,7 @@
 	db = p_new(pool, struct mysql_db, 1);
 	db->pool = pool;
 	db->api = driver_mysql_db;
-	ARRAY_CREATE(&db->connections, pool, 6);
+	p_array_init(&db->connections, pool, 6);
 
 	driver_mysql_parse_connect_string(db, connect_string);
 	return &db->api;

Index: sql-api.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-sql/sql-api.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- sql-api.c	10 Sep 2006 12:33:12 -0000	1.12
+++ sql-api.c	10 Sep 2006 12:48:22 -0000	1.13
@@ -8,7 +8,7 @@
 
 void sql_drivers_init(void)
 {
-	ARRAY_CREATE(&sql_drivers, default_pool, 8);
+	i_array_init(&sql_drivers, 8);
 }
 
 void sql_drivers_deinit(void)



More information about the dovecot-cvs mailing list