From: Timo Sirainen Date: Wed, 4 Sep 2013 19:13:01 +0000 (+0300) Subject: i_close_fd() didn't handle errors correctly with gcc. X-Git-Tag: 2.2.6~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93dbad4bfd3347f6451d217cc9e115f9f0bf9f40;p=thirdparty%2Fdovecot%2Fcore.git i_close_fd() didn't handle errors correctly with gcc. --- diff --git a/src/lib/macros.h b/src/lib/macros.h index 921055e7b3..6e292921f8 100644 --- a/src/lib/macros.h +++ b/src/lib/macros.h @@ -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