diff options
Diffstat (limited to 'src/testcurl/test_quiesce.c')
-rw-r--r-- | src/testcurl/test_quiesce.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c index 695c5db9..254e7c99 100644 --- a/src/testcurl/test_quiesce.c +++ b/src/testcurl/test_quiesce.c | |||
@@ -34,13 +34,6 @@ | |||
34 | #include <pthread.h> | 34 | #include <pthread.h> |
35 | #include "mhd_sockets.h" /* only macros used */ | 35 | #include "mhd_sockets.h" /* only macros used */ |
36 | 36 | ||
37 | void | ||
38 | MHD_PANIC (char *msg) | ||
39 | { | ||
40 | fprintf (stderr, "%s", msg); | ||
41 | abort (); | ||
42 | } | ||
43 | |||
44 | 37 | ||
45 | #ifndef WINDOWS | 38 | #ifndef WINDOWS |
46 | #include <unistd.h> | 39 | #include <unistd.h> |
@@ -150,7 +143,7 @@ ServeOneRequest(void *param) | |||
150 | if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &max)) | 143 | if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &max)) |
151 | { | 144 | { |
152 | MHD_stop_daemon (d); | 145 | MHD_stop_daemon (d); |
153 | MHD_socket_close_(fd); | 146 | MHD_socket_close_chk_(fd); |
154 | return "MHD_get_fdset() failed"; | 147 | return "MHD_get_fdset() failed"; |
155 | } | 148 | } |
156 | tv.tv_sec = 0; | 149 | tv.tv_sec = 0; |
@@ -293,7 +286,7 @@ testGet (int type, int pool_count, int poll_flag) | |||
293 | fprintf(stderr, "%s\n", cbc.buf); | 286 | fprintf(stderr, "%s\n", cbc.buf); |
294 | curl_easy_cleanup (c); | 287 | curl_easy_cleanup (c); |
295 | MHD_stop_daemon (d); | 288 | MHD_stop_daemon (d); |
296 | MHD_socket_close_(fd); | 289 | MHD_socket_close_chk_(fd); |
297 | return 4; | 290 | return 4; |
298 | } | 291 | } |
299 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) | 292 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) |
@@ -301,7 +294,7 @@ testGet (int type, int pool_count, int poll_flag) | |||
301 | fprintf(stderr, "%s\n", cbc.buf); | 294 | fprintf(stderr, "%s\n", cbc.buf); |
302 | curl_easy_cleanup (c); | 295 | curl_easy_cleanup (c); |
303 | MHD_stop_daemon (d); | 296 | MHD_stop_daemon (d); |
304 | MHD_socket_close_(fd); | 297 | MHD_socket_close_chk_(fd); |
305 | return 8; | 298 | return 8; |
306 | } | 299 | } |
307 | 300 | ||
@@ -313,12 +306,12 @@ testGet (int type, int pool_count, int poll_flag) | |||
313 | fprintf (stderr, "curl_easy_perform should fail\n"); | 306 | fprintf (stderr, "curl_easy_perform should fail\n"); |
314 | curl_easy_cleanup (c); | 307 | curl_easy_cleanup (c); |
315 | MHD_stop_daemon (d); | 308 | MHD_stop_daemon (d); |
316 | MHD_socket_close_(fd); | 309 | MHD_socket_close_chk_(fd); |
317 | return 2; | 310 | return 2; |
318 | } | 311 | } |
319 | curl_easy_cleanup (c); | 312 | curl_easy_cleanup (c); |
320 | MHD_stop_daemon (d); | 313 | MHD_stop_daemon (d); |
321 | MHD_socket_close_(fd); | 314 | MHD_socket_close_chk_(fd); |
322 | 315 | ||
323 | return 0; | 316 | return 0; |
324 | } | 317 | } |
@@ -478,7 +471,7 @@ testExternalGet () | |||
478 | curl_multi_cleanup (multi); | 471 | curl_multi_cleanup (multi); |
479 | } | 472 | } |
480 | MHD_stop_daemon (d); | 473 | MHD_stop_daemon (d); |
481 | MHD_socket_close_ (fd); | 474 | MHD_socket_close_chk_ (fd); |
482 | if (cbc.pos != strlen ("/hello_world")) | 475 | if (cbc.pos != strlen ("/hello_world")) |
483 | return 8192; | 476 | return 8192; |
484 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) | 477 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) |