[dovecot-cvs] dovecot/src/deliver auth-client.c,1.6,1.7

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


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

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



Index: auth-client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/auth-client.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- auth-client.c	2 Nov 2006 18:11:05 -0000	1.6
+++ auth-client.c	15 Dec 2006 18:38:09 -0000	1.7
@@ -116,9 +116,8 @@
 	return_value = EX_OK;
 }
 
-static void auth_input(void *context)
+static void auth_input(struct auth_connection *conn)
 {
-	struct auth_connection *conn = context;
 	const char *line;
 
 	switch (i_stream_read(conn->input)) {
@@ -188,10 +187,8 @@
 	return conn;
 }
 
-static void auth_client_timeout(void *context)
+static void auth_client_timeout(struct auth_connection *conn)
 {
-	struct auth_connection *conn = context;
-
 	if (!conn->handshaked)
 		i_error("Connecting to dovecot-auth timed out");
 	else



More information about the dovecot-cvs mailing list