dovecot-2.2: i_close_fd() didn't handle errors correctly with gcc.

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 4 22:13:18 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/39972f75b143
changeset: 16708:39972f75b143
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 04 22:13:01 2013 +0300
description:
i_close_fd() didn't handle errors correctly with gcc.

diffstat:

 src/lib/macros.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 72028f670746 -r 39972f75b143 src/lib/macros.h
--- a/src/lib/macros.h	Wed Sep 04 21:23:33 2013 +0300
+++ b/src/lib/macros.h	Wed Sep 04 22:13:01 2013 +0300
@@ -199,7 +199,7 @@
 #endif
 
 #define i_close_fd(fd) STMT_START {  \
-	if (unlikely(close_keep_errno(fd)) < 0) \
+	if (unlikely(close_keep_errno(fd) < 0)) \
 		i_error("close(%d[%s:%d]) failed: %m", \
 			*(fd), __FILE__, __LINE__); \
 	} STMT_END


More information about the dovecot-cvs mailing list