gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]