commit 8f444c321f95f3d4c20363f397c4bf3a91b09a1d parent 54e123587e440e183eb5b7fbd6dcd1bebbc795dd Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Wed, 27 Apr 2022 13:51:33 +0300 MHD_itc_clear_(): simplified eventfd version Diffstat:
| M | src/microhttpd/mhd_itc.h | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git 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; * Clear signaled state on @a itc * @param itc the itc to clear */ -#define MHD_itc_clear_(itc) \ - do { uint64_t __b; int __r; \ - __r = read ((itc).fd, &__b, sizeof(__b)); \ - (void) __r; } while (0) +#define MHD_itc_clear_(itc) \ + do { uint64_t __b; \ + (void) read ((itc).fd, &__b, sizeof(__b)); \ + } while (0) /** * Destroy previously initialised ITC. Note that close()