[dovecot-cvs] dovecot/src/lib ioloop-notify-inotify.c, 1.10, 1.11 ioloop-notify-kqueue.c, 1.7, 1.8 ostream-file.c, 1.63, 1.64
tss at dovecot.org
tss at dovecot.org
Fri Dec 15 18:38:13 UTC 2006
- Previous message: [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
- Next message: [dovecot-cvs] dovecot/src/imap client.c, 1.71, 1.72 client.h, 1.37, 1.38 cmd-append.c, 1.84, 1.85 cmd-idle.c, 1.33, 1.34 imap-fetch-body.c, 1.28, 1.29 imap-fetch.c, 1.49, 1.50 imap-fetch.h, 1.21, 1.22 imap-thread.c, 1.31, 1.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv3614/lib
Modified Files:
ioloop-notify-inotify.c ioloop-notify-kqueue.c ostream-file.c
Log Message:
Replaced void *context from a lot of callbacks with the actual context
type. Also added/fixed some context type checks.
Index: ioloop-notify-inotify.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-notify-inotify.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ioloop-notify-inotify.c 18 Aug 2006 11:35:59 -0000 1.10
+++ ioloop-notify-inotify.c 15 Dec 2006 18:38:10 -0000 1.11
@@ -88,10 +88,8 @@
return TRUE;
}
-static void event_callback(void *context)
+static void event_callback(struct ioloop *ioloop)
{
- struct ioloop *ioloop = context;
-
while (event_read_next(ioloop)) ;
}
Index: ioloop-notify-kqueue.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-notify-kqueue.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ioloop-notify-kqueue.c 3 Nov 2006 14:19:33 -0000 1.7
+++ ioloop-notify-kqueue.c 15 Dec 2006 18:38:10 -0000 1.8
@@ -38,9 +38,8 @@
struct io *event_io;
};
-static void event_callback(void *context)
+static void event_callback(struct ioloop_notify_handler_context *ctx)
{
- struct ioloop_notify_handler_context *ctx = context;
struct io *io;
struct kevent ev;
struct timespec ts;
Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- ostream-file.c 18 Nov 2006 23:31:16 -0000 1.63
+++ ostream-file.c 15 Dec 2006 18:38:10 -0000 1.64
@@ -47,7 +47,7 @@
unsigned int autoclose_fd:1;
};
-static void stream_send_io(void *context);
+static void stream_send_io(struct file_ostream *fstream);
static void stream_closed(struct file_ostream *fstream)
{
@@ -339,9 +339,8 @@
fstream->buffer_size = size;
}
-static void stream_send_io(void *context)
+static void stream_send_io(struct file_ostream *fstream)
{
- struct file_ostream *fstream = context;
struct ostream *ostream = &fstream->ostream.ostream;
int ret;
- Previous message: [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
- Next message: [dovecot-cvs] dovecot/src/imap client.c, 1.71, 1.72 client.h, 1.37, 1.38 cmd-append.c, 1.84, 1.85 cmd-idle.c, 1.33, 1.34 imap-fetch-body.c, 1.28, 1.29 imap-fetch.c, 1.49, 1.50 imap-fetch.h, 1.21, 1.22 imap-thread.c, 1.31, 1.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list