[dovecot-cvs] dovecot/src/lib-storage/index/mbox
mbox-sync-rewrite.c, 1.28, 1.29
cras at dovecot.org
cras at dovecot.org
Thu Sep 16 17:55:15 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv26130/lib-storage/index/mbox
Modified Files:
mbox-sync-rewrite.c
Log Message:
Remove size==(uoff_t)-1 handling because it never happens.
Index: mbox-sync-rewrite.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-rewrite.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mbox-sync-rewrite.c 23 Aug 2004 07:51:53 -0000 1.28
+++ mbox-sync-rewrite.c 16 Sep 2004 14:55:13 -0000 1.29
@@ -27,17 +27,11 @@
i_stream_seek(sync_ctx->file_input, source);
o_stream_seek(output, dest);
- if (size == (uoff_t)-1) {
- input = sync_ctx->file_input;
- ret = o_stream_send_istream(output, input) < 0 ? -1 : 0;
- } else {
- input = i_stream_create_limit(default_pool,
- sync_ctx->file_input,
- source, size);
- ret = o_stream_send_istream(output, input);
- i_stream_unref(input);
- ret = ret == (off_t)size ? 0 : -1;
- }
+ input = i_stream_create_limit(default_pool, sync_ctx->file_input,
+ source, size);
+ ret = o_stream_send_istream(output, input);
+ i_stream_unref(input);
+ ret = ret == (off_t)size ? 0 : -1;
if (ret < 0) {
errno = output->stream_errno;
More information about the dovecot-cvs
mailing list