diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-30 15:32:43 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-01 15:00:34 +0300 |
commit | 53207f93b0886adddf9bc0fa6ac1ba88db7a6682 (patch) | |
tree | 579197e64fa48aa40741f4321c661519e5f0ffa9 /src/testcurl/test_large_put.c | |
parent | b34d7a3e0293cfd3248000bacfc5f5ae52903e21 (diff) | |
download | libmicrohttpd-53207f93b0886adddf9bc0fa6ac1ba88db7a6682.tar.gz libmicrohttpd-53207f93b0886adddf9bc0fa6ac1ba88db7a6682.zip |
testcurl: Muted some compiler warnings, minor refactoring
Used new API for creating of responses to avoid 'const' drops
Diffstat (limited to 'src/testcurl/test_large_put.c')
-rw-r--r-- | src/testcurl/test_large_put.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c index 161e0f0b..4b7fae46 100644 --- a/src/testcurl/test_large_put.c +++ b/src/testcurl/test_large_put.c | |||
@@ -286,9 +286,9 @@ ahc_echo (void *cls, | |||
286 | *done = 1; /* Whole request is processed. */ | 286 | *done = 1; /* Whole request is processed. */ |
287 | return MHD_YES; | 287 | return MHD_YES; |
288 | } | 288 | } |
289 | response = MHD_create_response_from_buffer (strlen (url), | 289 | response = |
290 | (void *) url, | 290 | MHD_create_response_from_buffer_copy (strlen (url), |
291 | MHD_RESPMEM_MUST_COPY); | 291 | (const void *) url); |
292 | if (NULL == response) | 292 | if (NULL == response) |
293 | mhdErrorExitDesc ("Failed to create response"); | 293 | mhdErrorExitDesc ("Failed to create response"); |
294 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 294 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |