dovecot-2.2: dsync: Minor fix for talking with remote dsync.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 8 06:42:09 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/0949ddc3a892
changeset: 15592:0949ddc3a892
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jan 08 06:41:56 2013 +0200
description:
dsync: Minor fix for talking with remote dsync.

diffstat:

 src/doveadm/dsync/dsync-ibc-stream.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r a7be0c9a00df -r 0949ddc3a892 src/doveadm/dsync/dsync-ibc-stream.c
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Tue Jan 08 05:23:06 2013 +0200
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Tue Jan 08 06:41:56 2013 +0200
@@ -331,8 +331,7 @@
 	}
 
 	/* try reading some */
-	switch (i_stream_read(ibc->input)) {
-	case -1:
+	if (i_stream_read(ibc->input) == -1) {
 		if (ibc->input->stream_errno != 0) {
 			errno = ibc->input->stream_errno;
 			i_error("read(%s) failed: %m", ibc->name);
@@ -342,8 +341,6 @@
 		}
 		dsync_ibc_stream_stop(ibc);
 		return -1;
-	case 0:
-		return 0;
 	}
 	*line_r = i_stream_next_line(ibc->input);
 	if (*line_r == NULL) {


More information about the dovecot-cvs mailing list