aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_delete.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-30 15:32:43 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-01 15:00:34 +0300
commit53207f93b0886adddf9bc0fa6ac1ba88db7a6682 (patch)
tree579197e64fa48aa40741f4321c661519e5f0ffa9 /src/testcurl/test_delete.c
parentb34d7a3e0293cfd3248000bacfc5f5ae52903e21 (diff)
downloadlibmicrohttpd-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_delete.c')
-rw-r--r--src/testcurl/test_delete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c
index f0e89395..91b51851 100644
--- a/src/testcurl/test_delete.c
+++ b/src/testcurl/test_delete.c
@@ -115,8 +115,8 @@ ahc_echo (void *cls,
115 *done = 1; 115 *done = 1;
116 return MHD_YES; 116 return MHD_YES;
117 } 117 }
118 response = MHD_create_response_from_buffer (strlen (url), (void *) url, 118 response = MHD_create_response_from_buffer_copy (strlen (url),
119 MHD_RESPMEM_MUST_COPY); 119 (const void *) url);
120 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 120 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
121 MHD_destroy_response (response); 121 MHD_destroy_response (response);
122 return ret; 122 return ret;