[dovecot-cvs] dovecot/src/pop3 client.c,1.69,1.70

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


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

Modified Files:
	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: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- client.c	25 Nov 2006 22:18:36 -0000	1.69
+++ client.c	15 Dec 2006 18:38:27 -0000	1.70
@@ -36,8 +36,8 @@
 static struct client *my_client; /* we don't need more than one currently */
 static struct timeout *to_idle;
 
-static void client_input(void *context);
-static int client_output(void *context);
+static void client_input(struct client *client);
+static int client_output(struct client *client);
 
 static int sync_mailbox(struct mailbox *box, struct mailbox_status *status)
 {
@@ -329,9 +329,8 @@
 			 "BUG: Unknown error");
 }
 
-static void client_input(void *context)
+static void client_input(struct client *client)
 {
-	struct client *client = context;
 	char *line, *args;
 	int ret;
 
@@ -388,9 +387,8 @@
 		client_destroy(client, NULL);
 }
 
-static int client_output(void *context)
+static int client_output(struct client *client)
 {
-	struct client *client = context;
 	int ret;
 
 	if ((ret = o_stream_flush(client->output)) < 0) {



More information about the dovecot-cvs mailing list