[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 07/08: Fixed some compiler warnings on W32
From: |
gnunet |
Subject: |
[libmicrohttpd] 07/08: Fixed some compiler warnings on W32 |
Date: |
Sat, 14 May 2022 15:11:42 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit e4d6c07b141b0ddb989d6826e4f8344c50e1b5fa
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat May 14 15:48:35 2022 +0300
Fixed some compiler warnings on W32
---
src/microhttpd/daemon.c | 2 +-
src/microhttpd/mhd_sockets.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 3d09a975..beeee7d8 100644
--- 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
index 89f7d161..224d8464 100644
--- 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
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (f50b6be7 -> 83fe7b77), gnunet, 2022/05/14
- [libmicrohttpd] 02/08: MHD_create_response_from_buffer_copy(): fixed doxy, gnunet, 2022/05/14
- [libmicrohttpd] 04/08: Return NULL for MHD_CONNECTION_INFO_CLIENT_ADDRESS if information is not available, gnunet, 2022/05/14
- [libmicrohttpd] 01/08: Replaced MHD_RESPMEM_MUST_FREE with more portable solution in examples, gnunet, 2022/05/14
- [libmicrohttpd] 03/08: Replaced MHD_RESPMEM_PERSISTENT usage in examples and code, gnunet, 2022/05/14
- [libmicrohttpd] 08/08: Fixed additional compiler warnings on W32, gnunet, 2022/05/14
- [libmicrohttpd] 05/08: Fixed return type for get_system_fdsetsize_value (), gnunet, 2022/05/14
- [libmicrohttpd] 06/08: Fixed handling of connections with non-standard client addresses (pipe or UNIX sockets)., gnunet, 2022/05/14
- [libmicrohttpd] 07/08: Fixed some compiler warnings on W32,
gnunet <=