diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-02-18 18:47:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-02-18 18:47:10 +0000 |
commit | e385fd5c0a5d61b8e8e02e21b905b06d9dc804fa (patch) | |
tree | 8c356e81303ace7e9e1f953ba5a14f27a4e5ebed | |
parent | 84c97c74e0452200b55dc2f0f046e451055f66c6 (diff) | |
download | libmicrohttpd-e385fd5c0a5d61b8e8e02e21b905b06d9dc804fa.tar.gz libmicrohttpd-e385fd5c0a5d61b8e8e02e21b905b06d9dc804fa.zip |
-fix compiler warning
-rw-r--r-- | src/testcurl/test_quiesce.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c index 8a426a61..d02dccc1 100644 --- a/src/testcurl/test_quiesce.c +++ b/src/testcurl/test_quiesce.c | |||
@@ -117,7 +117,7 @@ ServeOneRequest(void *param) | |||
117 | struct timeval tv; | 117 | struct timeval tv; |
118 | int done = 0; | 118 | int done = 0; |
119 | 119 | ||
120 | fd = (MHD_socket) param; | 120 | fd = (MHD_socket) (intptr_t) param; |
121 | 121 | ||
122 | d = MHD_start_daemon (MHD_USE_DEBUG, | 122 | d = MHD_start_daemon (MHD_USE_DEBUG, |
123 | 1082, NULL, NULL, &ahc_echo, "GET", | 123 | 1082, NULL, NULL, &ahc_echo, "GET", |
@@ -227,7 +227,7 @@ testGet (int type, int pool_count, int poll_flag) | |||
227 | } | 227 | } |
228 | 228 | ||
229 | fd = MHD_quiesce_daemon (d); | 229 | fd = MHD_quiesce_daemon (d); |
230 | if (0 != pthread_create(&thrd, NULL, ServeOneRequest, (void*)fd)) | 230 | if (0 != pthread_create(&thrd, NULL, &ServeOneRequest, (void*)(intptr_t) fd)) |
231 | { | 231 | { |
232 | fprintf (stderr, "pthread_create failed\n"); | 232 | fprintf (stderr, "pthread_create failed\n"); |
233 | curl_easy_cleanup (c); | 233 | curl_easy_cleanup (c); |
@@ -261,7 +261,7 @@ testGet (int type, int pool_count, int poll_flag) | |||
261 | return 16; | 261 | return 16; |
262 | } | 262 | } |
263 | 263 | ||
264 | if (cbc.pos != strlen ("/hello_world")) | 264 | if (cbc.pos != strlen ("/hello_world")) |
265 | { | 265 | { |
266 | fprintf(stderr, "%s\n", cbc.buf); | 266 | fprintf(stderr, "%s\n", cbc.buf); |
267 | curl_easy_cleanup (c); | 267 | curl_easy_cleanup (c); |
@@ -269,7 +269,7 @@ testGet (int type, int pool_count, int poll_flag) | |||
269 | MHD_socket_close_(fd); | 269 | MHD_socket_close_(fd); |
270 | return 4; | 270 | return 4; |
271 | } | 271 | } |
272 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) | 272 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) |
273 | { | 273 | { |
274 | fprintf(stderr, "%s\n", cbc.buf); | 274 | fprintf(stderr, "%s\n", cbc.buf); |
275 | curl_easy_cleanup (c); | 275 | curl_easy_cleanup (c); |
@@ -310,7 +310,7 @@ testExternalGet () | |||
310 | fd_set ws; | 310 | fd_set ws; |
311 | fd_set es; | 311 | fd_set es; |
312 | MHD_socket max; | 312 | MHD_socket max; |
313 | int running; | 313 | int running; |
314 | struct CURLMsg *msg; | 314 | struct CURLMsg *msg; |
315 | time_t start; | 315 | time_t start; |
316 | struct timeval tv; | 316 | struct timeval tv; |