libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit c7149d1378e155a03183d852f72f88ec74b9f404
parent 5688db4e34f1e0742a3c3cd714ea6f0e10799923
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 11 Oct 2016 15:20:59 +0000

Simplify MHD_itc_init_() macro for eventfd

Diffstat:
Msrc/microhttpd/mhd_itc.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h @@ -59,7 +59,7 @@ typedef int MHD_itc_; * @param itc the itc to initialise * @return non-zero if succeeded, zero otherwise */ -#define MHD_itc_init_(itc) ((-1 == ((itc) = eventfd (0, EFD_CLOEXEC | EFD_NONBLOCK))) ? 0 : !0) +#define MHD_itc_init_(itc) (-1 != ((itc) = eventfd (0, EFD_CLOEXEC | EFD_NONBLOCK))) /*** * Get description string of last errno for pipe operations.