[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c, 1.100, 1.101

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


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv3614/lib-storage/index/mbox

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



Index: mbox-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- mbox-save.c	15 Oct 2006 15:42:58 -0000	1.100
+++ mbox-save.c	15 Dec 2006 18:38:22 -0000	1.101
@@ -322,10 +322,8 @@
 }
 
 static void save_header_callback(struct message_header_line *hdr,
-				 bool *matched, void *context)
+				 bool *matched, struct mbox_save_context *ctx)
 {
-	struct mbox_save_context *ctx = context;
-
 	if (hdr != NULL) {
 		if (strncmp(hdr->name, "From ", 5) == 0) {
 			/* we can't allow From_-lines in headers. there's no



More information about the dovecot-cvs mailing list