gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32410 - libmicrohttpd/src/testcurl


From: gnunet
Subject: [GNUnet-SVN] r32410 - libmicrohttpd/src/testcurl
Date: Tue, 18 Feb 2014 19:47:10 +0100

Author: grothoff
Date: 2014-02-18 19:47:10 +0100 (Tue, 18 Feb 2014)
New Revision: 32410

Modified:
   libmicrohttpd/src/testcurl/test_quiesce.c
Log:
-fix compiler warning

Modified: libmicrohttpd/src/testcurl/test_quiesce.c
===================================================================
--- libmicrohttpd/src/testcurl/test_quiesce.c   2014-02-18 18:41:21 UTC (rev 
32409)
+++ libmicrohttpd/src/testcurl/test_quiesce.c   2014-02-18 18:47:10 UTC (rev 
32410)
@@ -117,7 +117,7 @@
   struct timeval tv;
   int done = 0;
 
-  fd = (MHD_socket) param;
+  fd = (MHD_socket) (intptr_t) param;
 
   d = MHD_start_daemon (MHD_USE_DEBUG,
                         1082, NULL, NULL, &ahc_echo, "GET",
@@ -227,7 +227,7 @@
   }
 
   fd = MHD_quiesce_daemon (d);
-  if (0 != pthread_create(&thrd, NULL, ServeOneRequest, (void*)fd))
+  if (0 != pthread_create(&thrd, NULL, &ServeOneRequest, (void*)(intptr_t) fd))
     {
       fprintf (stderr, "pthread_create failed\n");
       curl_easy_cleanup (c);
@@ -261,7 +261,7 @@
       return 16;
     }
 
-  if (cbc.pos != strlen ("/hello_world")) 
+  if (cbc.pos != strlen ("/hello_world"))
     {
       fprintf(stderr, "%s\n", cbc.buf);
       curl_easy_cleanup (c);
@@ -269,7 +269,7 @@
       MHD_socket_close_(fd);
       return 4;
     }
-  if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) 
+  if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
     {
       fprintf(stderr, "%s\n", cbc.buf);
       curl_easy_cleanup (c);
@@ -310,7 +310,7 @@
   fd_set ws;
   fd_set es;
   MHD_socket max;
-  int running; 
+  int running;
   struct CURLMsg *msg;
   time_t start;
   struct timeval tv;




reply via email to

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