[dovecot-cvs] dovecot/src/pop3-login client-authenticate.c, 1.54, 1.55 client.c, 1.62, 1.63 client.h, 1.18, 1.19 pop3-proxy.c, 1.15, 1.16

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


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

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



Index: client-authenticate.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client-authenticate.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- client-authenticate.c	3 Dec 2006 12:13:53 -0000	1.54
+++ client-authenticate.c	15 Dec 2006 18:38:28 -0000	1.55
@@ -58,9 +58,8 @@
 	return TRUE;
 }
 
-static void client_auth_input(void *context)
+static void client_auth_input(struct pop3_client *client)
 {
-	struct pop3_client *client = context;
 	char *line;
 
 	if (!client_read(client))

Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- client.c	15 Dec 2006 16:55:53 -0000	1.62
+++ client.c	15 Dec 2006 18:38:28 -0000	1.63
@@ -100,9 +100,8 @@
 	client->io = io_add(client->common.fd, IO_READ, client_input, client);
 }
 
-static int client_output_starttls(void *context)
+static int client_output_starttls(struct pop3_client *client)
 {
-	struct pop3_client *client = context;
 	int ret;
 
 	if ((ret = o_stream_flush(client->output)) < 0) {
@@ -198,9 +197,8 @@
 	}
 }
 
-void client_input(void *context)
+void client_input(struct pop3_client *client)
 {
-	struct pop3_client *client = context;
 	char *line, *args;
 
 	client->last_input = ioloop_time;

Index: client.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- client.h	14 Feb 2006 18:58:25 -0000	1.18
+++ client.h	15 Dec 2006 18:38:28 -0000	1.19
@@ -39,7 +39,7 @@
 void client_send_line(struct pop3_client *client, const char *line);
 
 bool client_read(struct pop3_client *client);
-void client_input(void *context);
+void client_input(struct pop3_client *client);
 
 void client_ref(struct pop3_client *client);
 bool client_unref(struct pop3_client *client);

Index: pop3-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/pop3-proxy.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- pop3-proxy.c	3 Dec 2006 20:02:50 -0000	1.15
+++ pop3-proxy.c	15 Dec 2006 18:38:28 -0000	1.16
@@ -11,9 +11,8 @@
 #include "pop3-proxy.h"
 
 static void proxy_input(struct istream *input, struct ostream *output,
-			void *context)
+			struct pop3_client *client)
 {
-	struct pop3_client *client = context;
 	string_t *str;
 	const char *line;
 



More information about the dovecot-cvs mailing list