[dovecot-cvs] dovecot/src/lib-storage mail-storage-private.h, 1.3, 1.4 mail-storage.c, 1.23, 1.24

cras at procontrol.fi cras at procontrol.fi
Tue Jun 22 10:48:20 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv18182/lib-storage

Modified Files:
	mail-storage-private.h mail-storage.c 
Log Message:
get_last_error() wasn't virtualizable



Index: mail-storage-private.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage-private.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mail-storage-private.h	20 Jun 2004 03:25:33 -0000	1.3
+++ mail-storage-private.h	22 Jun 2004 07:48:18 -0000	1.4
@@ -127,4 +127,7 @@
 			       const char *fmt, ...) __attr_format__(2, 3);
 void mail_storage_set_internal_error(struct mail_storage *storage);
 
+const char *mail_storage_class_get_last_error(struct mail_storage *storage,
+					      int *syntax_error_r);
+
 #endif

Index: mail-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- mail-storage.c	20 Jun 2004 03:25:33 -0000	1.23
+++ mail-storage.c	22 Jun 2004 07:48:18 -0000	1.24
@@ -325,8 +325,7 @@
 const char *mail_storage_get_last_error(struct mail_storage *storage,
 					int *syntax_error_r)
 {
-	*syntax_error_r = storage->syntax_error;
-	return storage->error;
+	return storage->get_last_error(storage, syntax_error_r);
 }
 
 struct mailbox *mailbox_open(struct mail_storage *storage,



More information about the dovecot-cvs mailing list