]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
i_close_fd() didn't handle errors correctly with gcc.
authorTimo Sirainen <tss@iki.fi>
Wed, 4 Sep 2013 19:13:01 +0000 (22:13 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 4 Sep 2013 19:13:01 +0000 (22:13 +0300)
src/lib/macros.h

index 921055e7b304ceed382868aed444a561d690798b..6e292921f8566f87d922e0f820f1a790e7580da2 100644 (file)
 #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