Mercurial > dovecot > core-2.2
changeset 545:c97f631bd26d HEAD
path parameter wasn't used
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 28 Oct 2002 11:40:15 +0200 |
parents | 42e65c2ba49d |
children | e1254b838e0b |
files | src/lib-index/maildir/maildir-build.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/maildir/maildir-build.c Mon Oct 28 11:31:40 2002 +0200 +++ b/src/lib-index/maildir/maildir-build.c Mon Oct 28 11:40:15 2002 +0200 @@ -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;