dovecot-2.1: lib-ssl-iostream: Compiler warning fix.

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 7 08:41:36 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/fb03574ddd34
changeset: 13411:fb03574ddd34
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 07 08:40:41 2011 +0300
description:
lib-ssl-iostream: Compiler warning fix.

diffstat:

 src/lib-ssl-iostream/ostream-openssl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 7ae9c4aa5edb -r fb03574ddd34 src/lib-ssl-iostream/ostream-openssl.c
--- a/src/lib-ssl-iostream/ostream-openssl.c	Tue Sep 06 17:29:38 2011 +0300
+++ b/src/lib-ssl-iostream/ostream-openssl.c	Wed Sep 07 08:40:41 2011 +0300
@@ -124,7 +124,7 @@
 {
 	unsigned int i;
 	size_t pos;
-	ssize_t ret;
+	ssize_t ret = 0;
 
 	*bytes_sent_r = 0;
 	for (i = 0, pos = 0; i < iov_count; ) {
@@ -151,7 +151,7 @@
 			(void)ssl_iostream_bio_sync(sstream->ssl_io);
 		}
 	}
-	return ret <= 0 ? ret : 1;
+	return ret < 0 ? -1 : 0;
 }
 
 static ssize_t


More information about the dovecot-cvs mailing list