[dovecot-cvs] dovecot/src/dict dict-server.c,1.18,1.19

tss at dovecot.org tss at dovecot.org
Fri Dec 15 18:38:11 UTC 2006


Update of /var/lib/cvs/dovecot/src/dict
In directory talvi:/tmp/cvs-serv3614/dict

Modified Files:
	dict-server.c 
Log Message:
Replaced void *context from a lot of callbacks with the actual context
type. Also added/fixed some context type checks.



Index: dict-server.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/dict/dict-server.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- dict-server.c	10 Sep 2006 12:48:13 -0000	1.18
+++ dict-server.c	15 Dec 2006 18:38:09 -0000	1.19
@@ -358,9 +358,8 @@
 	return 0;
 }
 
-static void dict_client_connection_input(void *context)
+static void dict_client_connection_input(struct dict_client_connection *conn)
 {
-	struct dict_client_connection *conn = context;
 	const char *line;
 	unsigned int i;
 	int ret;
@@ -454,9 +453,8 @@
 	return conn;
 }
 
-static void dict_server_listener_accept(void *context)
+static void dict_server_listener_accept(struct dict_server *server)
 {
-	struct dict_server *server = context;
 	int fd;
 
 	fd = net_accept(server->fd, NULL, NULL);



More information about the dovecot-cvs mailing list