[dovecot-cvs] dovecot/src/lib-index/maildir maildir-build.c,1.15,1.16

cras at procontrol.fi cras at procontrol.fi
Mon Oct 28 11:40:17 EET 2002


Update of /home/cvs/dovecot/src/lib-index/maildir
In directory danu:/tmp/cvs-serv13406

Modified Files:
	maildir-build.c 
Log Message:
path parameter wasn't used



Index: maildir-build.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/maildir/maildir-build.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- maildir-build.c	28 Oct 2002 08:32:30 -0000	1.15
+++ maildir-build.c	28 Oct 2002 09:40:15 -0000	1.16
@@ -11,8 +11,7 @@
 #include <dirent.h>
 #include <sys/stat.h>
 
-static int maildir_index_append_fd(MailIndex *index, int fd, const char *path,
-				   const char *fname)
+static int maildir_index_append_fd(MailIndex *index, int fd, const char *fname)
 {
 	MailIndexRecord *rec;
 	MailIndexUpdate *update;
@@ -21,7 +20,6 @@
 	const char *p;
 	int failed;
 
-	i_assert(path != NULL);
 	i_assert(fname != NULL);
 
 	if (!index->set_lock(index, MAIL_LOCK_EXCLUSIVE))
@@ -96,7 +94,7 @@
 		return index_file_set_syscall_error(index, path, "open()");
 	}
 
-	ret = maildir_index_append_fd(index, fd, path, fname);
+	ret = maildir_index_append_fd(index, fd, fname);
 	if (close(fd) < 0)
 		return index_file_set_syscall_error(index, path, "close()");
 	return ret;




More information about the dovecot-cvs mailing list