aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_itc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_itc.h')
-rw-r--r--src/microhttpd/mhd_itc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h
index 7bfccf30..01331f13 100644
--- a/src/microhttpd/mhd_itc.h
+++ b/src/microhttpd/mhd_itc.h
@@ -108,11 +108,13 @@ static const uint64_t _MHD_itc_wr_data = 1;
108 (void)__r; } while(0) 108 (void)__r; } while(0)
109 109
110/** 110/**
111 * Destroy previously initialised ITC 111 * Destroy previously initialised ITC. Note that close()
112 * on some platforms returns odd errors, so we ONLY fail
113 * if the errno is EBADF.
112 * @param itc the itc to destroy 114 * @param itc the itc to destroy
113 * @return non-zero if succeeded, zero otherwise 115 * @return non-zero if succeeded, zero otherwise
114 */ 116 */
115#define MHD_itc_destroy_(itc) ((0 != close ((itc).fd)) || (EBADF != errno)) 117#define MHD_itc_destroy_(itc) ((0 == close ((itc).fd)) || (EBADF != errno))
116 118
117/** 119/**
118 * Check whether ITC has valid value. 120 * Check whether ITC has valid value.