diff options
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index 0ce0b0c8..d09de610 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -77,9 +77,9 @@ | |||
77 | * Close FD and abort execution if error is detected. | 77 | * Close FD and abort execution if error is detected. |
78 | * @param fd the FD to close | 78 | * @param fd the FD to close |
79 | */ | 79 | */ |
80 | #define MHD_fd_close_chk_(fd) do { \ | 80 | #define MHD_fd_close_chk_(fd) do { \ |
81 | if (0 == close ((fd)) && (EBADF == errno)) \ | 81 | if ( (0 != close ((fd)) && (EBADF == errno)) ) \ |
82 | MHD_PANIC(_("Failed to close FD.\n")); \ | 82 | MHD_PANIC(_("Failed to close FD.\n")); \ |
83 | } while(0) | 83 | } while(0) |
84 | 84 | ||
85 | /** | 85 | /** |