commit e4d6c07b141b0ddb989d6826e4f8344c50e1b5fa
parent 840bc6ecfc2d8f65687c0c788cb595489e5cc0bd
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sat, 14 May 2022 15:48:35 +0300
Fixed some compiler warnings on W32
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -1884,7 +1884,7 @@ thread_main_handle_connection (void *data)
MHD_socket maxsock;
#if WINDOWS
#ifdef HAVE_POLL
- int extra_slot;
+ unsigned int extra_slot;
#endif /* HAVE_POLL */
#define EXTRA_SLOTS 1
#else /* !WINDOWS */
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
@@ -443,8 +443,8 @@ typedef int MHD_SCKT_SEND_SIZE_;
(((void*) (w) == (void*) 0) || ((fd_set*) (w))->fd_count == 0) && \
(((void*) (e) == (void*) 0) || ((fd_set*) (e))->fd_count == 0) ) ? \
( ((void*) (t) == (void*) 0) ? 0 : \
- (Sleep (((struct timeval*) (t))->tv_sec * 1000 \
- + ((struct timeval*) (t))->tv_usec / 1000), 0) ) : \
+ (Sleep ((DWORD)((struct timeval*) (t))->tv_sec * 1000 \
+ + (DWORD)((struct timeval*) (t))->tv_usec / 1000), 0) ) : \
(select ((int) 0,(r),(w),(e),(t))) )
#endif