[dovecot-cvs] dovecot/src/imap-login client-authenticate.c, 1.45, 1.46 client.c, 1.62, 1.63 client.h, 1.18, 1.19 imap-proxy.c, 1.13, 1.14
tss at dovecot.org
tss at dovecot.org
Fri Dec 15 18:38:13 UTC 2006
Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv3614/imap-login
Modified Files:
client-authenticate.c client.c client.h imap-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/imap-login/client-authenticate.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- client-authenticate.c 3 Dec 2006 12:13:51 -0000 1.45
+++ client-authenticate.c 15 Dec 2006 18:38:10 -0000 1.46
@@ -44,9 +44,8 @@
return str_c(str);
}
-static void client_auth_input(void *context)
+static void client_auth_input(struct imap_client *client)
{
- struct imap_client *client = context;
char *line;
if (!client_read(client))
Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-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:32 -0000 1.62
+++ client.c 15 Dec 2006 18:38:10 -0000 1.63
@@ -147,9 +147,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 imap_client *client)
{
- struct imap_client *client = context;
int ret;
if ((ret = o_stream_flush(client->output)) < 0) {
@@ -333,10 +332,8 @@
}
}
-void client_input(void *context)
+void client_input(struct imap_client *client)
{
- struct imap_client *client = context;
-
client->last_input = ioloop_time;
if (!client_read(client))
Index: client.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-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:26 -0000 1.18
+++ client.h 15 Dec 2006 18:38:10 -0000 1.19
@@ -40,7 +40,7 @@
bool client_read(struct imap_client *client);
bool client_skip_line(struct imap_client *client);
-void client_input(void *context);
+void client_input(struct imap_client *client);
void client_ref(struct imap_client *client);
bool client_unref(struct imap_client *client);
Index: imap-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/imap-proxy.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- imap-proxy.c 3 Dec 2006 20:02:49 -0000 1.13
+++ imap-proxy.c 15 Dec 2006 18:38:10 -0000 1.14
@@ -83,9 +83,8 @@
}
static void proxy_input(struct istream *input, struct ostream *output,
- void *context)
+ struct imap_client *client)
{
- struct imap_client *client = context;
const char *line;
if (input == NULL) {
More information about the dovecot-cvs
mailing list