aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_itc.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-11 15:20:59 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-11 15:20:59 +0000
commitc7149d1378e155a03183d852f72f88ec74b9f404 (patch)
treea66392f3461e64eab8da5582671c5c6c9d7a3568 /src/microhttpd/mhd_itc.h
parent5688db4e34f1e0742a3c3cd714ea6f0e10799923 (diff)
downloadlibmicrohttpd-c7149d1378e155a03183d852f72f88ec74b9f404.tar.gz
libmicrohttpd-c7149d1378e155a03183d852f72f88ec74b9f404.zip
Simplify MHD_itc_init_() macro for eventfd
Diffstat (limited to 'src/microhttpd/mhd_itc.h')
-rw-r--r--src/microhttpd/mhd_itc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h
index b41bfc33..0f10a2bc 100644
--- a/src/microhttpd/mhd_itc.h
+++ b/src/microhttpd/mhd_itc.h
@@ -59,7 +59,7 @@ typedef int MHD_itc_;
59 * @param itc the itc to initialise 59 * @param itc the itc to initialise
60 * @return non-zero if succeeded, zero otherwise 60 * @return non-zero if succeeded, zero otherwise
61 */ 61 */
62#define MHD_itc_init_(itc) ((-1 == ((itc) = eventfd (0, EFD_CLOEXEC | EFD_NONBLOCK))) ? 0 : !0) 62#define MHD_itc_init_(itc) (-1 != ((itc) = eventfd (0, EFD_CLOEXEC | EFD_NONBLOCK)))
63 63
64/*** 64/***
65 * Get description string of last errno for pipe operations. 65 * Get description string of last errno for pipe operations.