[dovecot-cvs] dovecot/src/pop3 common.h,1.12,1.13 main.c,1.45,1.46

cras at dovecot.org cras at dovecot.org
Thu Apr 27 15:29:16 EEST 2006


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

Modified Files:
	common.h main.c 
Log Message:
hook_mail_storage_created: Make it compatible with imap and lda by not
taking a pointer to pointer to storage.



Index: common.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/common.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- common.h	9 Apr 2006 15:50:54 -0000	1.12
+++ common.h	27 Apr 2006 12:29:14 -0000	1.13
@@ -22,7 +22,7 @@
 extern const char *uidl_format, *logout_format;
 extern enum uidl_keys uidl_keymask;
 
-extern void (*hook_mail_storage_created)(struct mail_storage **storage);
+extern void (*hook_mail_storage_created)(struct mail_storage *storage);
 extern void (*hook_client_created)(struct client **client);
 
 #endif

Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/main.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- main.c	13 Apr 2006 20:25:10 -0000	1.45
+++ main.c	27 Apr 2006 12:29:14 -0000	1.46
@@ -34,7 +34,7 @@
 
 struct ioloop *ioloop;
 
-void (*hook_mail_storage_created)(struct mail_storage **storage) = NULL;
+void (*hook_mail_storage_created)(struct mail_storage *storage) = NULL;
 void (*hook_client_created)(struct client **client) = NULL;
 
 static struct module *modules;
@@ -240,7 +240,7 @@
 	}
 
 	if (hook_mail_storage_created != NULL)
-		hook_mail_storage_created(&storage);
+		hook_mail_storage_created(storage);
 
 	return client_create(0, 1, storage) != NULL;
 }



More information about the dovecot-cvs mailing list