diff options
Diffstat (limited to 'src/testcurl/test_tricky.c')
-rw-r--r-- | src/testcurl/test_tricky.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/test_tricky.c b/src/testcurl/test_tricky.c index 5bc28323..b3042f61 100644 --- a/src/testcurl/test_tricky.c +++ b/src/testcurl/test_tricky.c | |||
@@ -246,7 +246,7 @@ struct headers_check_result | |||
246 | }; | 246 | }; |
247 | 247 | ||
248 | 248 | ||
249 | size_t | 249 | static size_t |
250 | lcurl_hdr_callback (char *buffer, size_t size, size_t nitems, | 250 | lcurl_hdr_callback (char *buffer, size_t size, size_t nitems, |
251 | void *userdata) | 251 | void *userdata) |
252 | { | 252 | { |
@@ -314,7 +314,7 @@ struct mhd_header_checker_param | |||
314 | int found_header4; | 314 | int found_header4; |
315 | }; | 315 | }; |
316 | 316 | ||
317 | enum MHD_Result | 317 | static enum MHD_Result |
318 | headerCheckerInterator (void *cls, | 318 | headerCheckerInterator (void *cls, |
319 | enum MHD_ValueKind kind, | 319 | enum MHD_ValueKind kind, |
320 | const char *key, | 320 | const char *key, |
@@ -425,9 +425,9 @@ ahcCheck (void *cls, | |||
425 | ¶m->header_check_param)) | 425 | ¶m->header_check_param)) |
426 | mhdErrorExitDesc ("Wrong number of headers in the request"); | 426 | mhdErrorExitDesc ("Wrong number of headers in the request"); |
427 | 427 | ||
428 | response = MHD_create_response_from_buffer (param->rp_data_size, | 428 | response = |
429 | (void *) param->rp_data, | 429 | MHD_create_response_from_buffer_copy (param->rp_data_size, |
430 | MHD_RESPMEM_MUST_COPY); | 430 | (const void *) param->rp_data); |
431 | if (NULL == response) | 431 | if (NULL == response) |
432 | mhdErrorExitDesc ("Failed to create response"); | 432 | mhdErrorExitDesc ("Failed to create response"); |
433 | 433 | ||