aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-27 13:51:33 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-27 13:51:33 +0300
commit8f444c321f95f3d4c20363f397c4bf3a91b09a1d (patch)
tree5c356b01456c430b619a288f9f0d7e0285eb99f4
parent54e123587e440e183eb5b7fbd6dcd1bebbc795dd (diff)
downloadlibmicrohttpd-8f444c321f95f3d4c20363f397c4bf3a91b09a1d.tar.gz
libmicrohttpd-8f444c321f95f3d4c20363f397c4bf3a91b09a1d.zip
MHD_itc_clear_(): simplified eventfd version
-rw-r--r--src/microhttpd/mhd_itc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h
index 27b36392..ad0d14e7 100644
--- a/src/microhttpd/mhd_itc.h
+++ b/src/microhttpd/mhd_itc.h
@@ -107,10 +107,10 @@ static const uint64_t _MHD_itc_wr_data = 1;
107 * Clear signaled state on @a itc 107 * Clear signaled state on @a itc
108 * @param itc the itc to clear 108 * @param itc the itc to clear
109 */ 109 */
110#define MHD_itc_clear_(itc) \ 110#define MHD_itc_clear_(itc) \
111 do { uint64_t __b; int __r; \ 111 do { uint64_t __b; \
112 __r = read ((itc).fd, &__b, sizeof(__b)); \ 112 (void) read ((itc).fd, &__b, sizeof(__b)); \
113 (void) __r; } while (0) 113 } while (0)
114 114
115/** 115/**
116 * Destroy previously initialised ITC. Note that close() 116 * Destroy previously initialised ITC. Note that close()