From: Timo Sirainen Date: Sun, 3 Feb 2013 19:52:19 +0000 (+0200) Subject: lib-fs: fs_write_stream_finish(file, NULL) is now alias to fs_write_stream_finish_asy... X-Git-Tag: 2.2.beta2~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6754d90ea6bbe1386eb4d39f603cf01edde4ef1;p=thirdparty%2Fdovecot%2Fcore.git lib-fs: fs_write_stream_finish(file, NULL) is now alias to fs_write_stream_finish_async(file) This makes wrapper implementations easier. --- diff --git a/src/lib-fs/fs-api.c b/src/lib-fs/fs-api.c index 9c8d2fd3c1..ba38e261db 100644 --- a/src/lib-fs/fs-api.c +++ b/src/lib-fs/fs-api.c @@ -314,7 +314,7 @@ struct ostream *fs_write_stream(struct fs_file *file) int fs_write_stream_finish(struct fs_file *file, struct ostream **output) { - i_assert(*output == file->output); + i_assert(*output == file->output || *output == NULL); *output = NULL; return file->fs->v.write_stream_finish(file, TRUE);