diff options
Diffstat (limited to 'src/lib/internal.h')
-rw-r--r-- | src/lib/internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/internal.h b/src/lib/internal.h index c6d7bec6..bd3bd1c6 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h | |||
@@ -92,9 +92,9 @@ MHD_DLOG (const struct MHD_Daemon *daemon, | |||
92 | * Close FD and abort execution if error is detected. | 92 | * Close FD and abort execution if error is detected. |
93 | * @param fd the FD to close | 93 | * @param fd the FD to close |
94 | */ | 94 | */ |
95 | #define MHD_fd_close_chk_(fd) do { \ | 95 | #define MHD_fd_close_chk_(fd) do { \ |
96 | if (0 == close ((fd)) && (EBADF == errno)) \ | 96 | if ( (0 != close ((fd)) && (EBADF == errno)) ) \ |
97 | MHD_PANIC(_("Failed to close FD.\n")); \ | 97 | MHD_PANIC(_("Failed to close FD.\n")); \ |
98 | } while(0) | 98 | } while(0) |
99 | 99 | ||
100 | /** | 100 | /** |