gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r36339 - libmicrohttpd/src/microhttpd


From: gnunet
Subject: [GNUnet-SVN] r36339 - libmicrohttpd/src/microhttpd
Date: Sun, 6 Sep 2015 18:02:03 +0200

Author: Karlson2k
Date: 2015-09-06 18:02:03 +0200 (Sun, 06 Sep 2015)
New Revision: 36339

Modified:
   libmicrohttpd/src/microhttpd/daemon.c
Log:
Fix compiler warnings; use correct variable type

Modified: libmicrohttpd/src/microhttpd/daemon.c
===================================================================
--- libmicrohttpd/src/microhttpd/daemon.c       2015-09-06 16:02:01 UTC (rev 
36338)
+++ libmicrohttpd/src/microhttpd/daemon.c       2015-09-06 16:02:03 UTC (rev 
36339)
@@ -427,7 +427,7 @@
 static ssize_t
 recv_tls_adapter (struct MHD_Connection *connection, void *other, size_t i)
 {
-  int res;
+  ssize_t res;
 
   if (MHD_YES == connection->tls_read_ready)
     {
@@ -452,7 +452,7 @@
       MHD_set_socket_errno_ (ECONNRESET);
       return res;
     }
-  if (res == i)
+  if ((size_t)res == i)
     {
       connection->tls_read_ready = MHD_YES;
       connection->daemon->num_tls_read_ready++;
@@ -642,7 +642,7 @@
         return MHD_NO;
     }
 #else  /* ! MHD_WINSOCK_SOCKETS */
-  if (fd >= fd_setsize)
+  if (fd >= (MHD_socket)fd_setsize)
     return MHD_NO;
 #endif /* ! MHD_WINSOCK_SOCKETS */
   FD_SET (fd, set);




reply via email to

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