[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37768 - libmicrohttpd/src/microhttpd
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37768 - libmicrohttpd/src/microhttpd |
Date: |
Tue, 23 Aug 2016 22:13:17 +0200 |
Author: Karlson2k
Date: 2016-08-23 22:13:17 +0200 (Tue, 23 Aug 2016)
New Revision: 37768
Modified:
libmicrohttpd/src/microhttpd/mhd_sockets.h
Log:
mhd_sockets.h: silent compiler warning
Modified: libmicrohttpd/src/microhttpd/mhd_sockets.h
===================================================================
--- libmicrohttpd/src/microhttpd/mhd_sockets.h 2016-08-23 20:13:14 UTC (rev
37767)
+++ libmicrohttpd/src/microhttpd/mhd_sockets.h 2016-08-23 20:13:17 UTC (rev
37768)
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37768 - libmicrohttpd/src/microhttpd,
gnunet <=