commit 58ce3ae66ee79602a381803a4dab1fb3a148634f
parent daeda7abc81cbec6cc00dab4db22db96308488d7
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 23 Aug 2016 20:13:17 +0000
mhd_sockets.h: silent compiler warning
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
@@ -209,11 +209,12 @@
# define MHD_SYS_select_(n,r,w,e,t) select((n),(r),(w),(e),(t))
#else
# define MHD_SYS_select_(n,r,w,e,t) \
-( (!(r) || ((fd_set*)(r))->fd_count == 0) && \
- (!(w) || ((fd_set*)(w))->fd_count == 0) && \
- (!(e) || ((fd_set*)(e))->fd_count == 0) ) ? \
-( (t) ? (Sleep((t)->tv_sec * 1000 + (t)->tv_usec / 1000), 0) : 0 ) : \
- (select((int)0,(r),(w),(e),(t)))
+( ( (((void*)(r) == (void*)0) || ((fd_set*)(r))->fd_count == 0) && \
+ (((void*)(w) == (void*)0) || ((fd_set*)(w))->fd_count == 0) && \
+ (((void*)(e) == (void*)0) || ((fd_set*)(e))->fd_count == 0) ) ? \
+ ( ((void*)(t) == (void*)0) ? \
+ (Sleep((t)->tv_sec * 1000 + (t)->tv_usec / 1000), 0) : 0 ) : \
+ (select((int)0,(r),(w),(e),(t))) )
#endif
#if defined(HAVE_POLL)