gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 07/11: tests: fixed compiler warnings on W3


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 07/11: tests: fixed compiler warnings on W32
Date: Sun, 26 May 2019 23:46:51 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit eb622eb2cbae5d628bd489ff5aee8a657f1e4f31
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun May 26 18:30:40 2019 +0300

    tests: fixed compiler warnings on W32
---
 src/testcurl/test_get.c | 4 +++-
 src/testcurl/test_put.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
index cc8b5396..793a8f30 100644
--- a/src/testcurl/test_get.c
+++ b/src/testcurl/test_get.c
@@ -474,8 +474,10 @@ testExternalGet ()
         }
       tv.tv_sec = 0;
       tv.tv_usec = 1000;
+#ifdef MHD_POSIX_SOCKETS
       if (maxsock > maxposixs)
         maxposixs = maxsock;
+#endif /* MHD_POSIX_SOCKETS */
       if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv))
         {
 #ifdef MHD_POSIX_SOCKETS
@@ -483,7 +485,7 @@ testExternalGet ()
             abort ();
 #else
           if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 != 
ws.fd_count || 0 != es.fd_count)
-            abort ();
+            _exit (99);
           Sleep (1000);
 #endif
         }
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c
index 0c5e797e..fd56e2b2 100644
--- a/src/testcurl/test_put.c
+++ b/src/testcurl/test_put.c
@@ -459,8 +459,10 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
           MHD_stop_daemon (d);
           return 4096;
         }
+#ifdef MHD_POSIX_SOCKETS
       if (maxsock > maxposixs)
         maxposixs = maxsock;
+#endif /* MHD_POSIX_SOCKETS */
       tv.tv_sec = 0;
       tv.tv_usec = 1000;
       if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv))
@@ -470,7 +472,7 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
             abort ();
 #else
           if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 != 
ws.fd_count || 0 != es.fd_count)
-            abort ();
+            _exit (99);
           Sleep (1000);
 #endif
         }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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