aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post_loop.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-14 15:07:47 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-14 15:07:47 +0300
commit85ae657849685d27b79ae6b14f7248d81ec99d2c (patch)
tree5766712bc12b799cba3ee40058782b66d494d008 /src/testcurl/test_post_loop.c
parent4fc1bbfd5bf3196e1f603e443b51ddec911305b4 (diff)
downloadlibmicrohttpd-85ae657849685d27b79ae6b14f7248d81ec99d2c.tar.gz
libmicrohttpd-85ae657849685d27b79ae6b14f7248d81ec99d2c.zip
Replaced MHD_RESPMEM_PERSISTENT usage in examples and code
New functions do not produce compiler warnings.
Diffstat (limited to 'src/testcurl/test_post_loop.c')
-rw-r--r--src/testcurl/test_post_loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
index 37cd121b..ec42ffce 100644
--- a/src/testcurl/test_post_loop.c
+++ b/src/testcurl/test_post_loop.c
@@ -103,8 +103,8 @@ ahc_echo (void *cls,
103 { 103 {
104 if (*req_cls != &marker) 104 if (*req_cls != &marker)
105 abort (); 105 abort ();
106 response = MHD_create_response_from_buffer (2, "OK", 106 response = MHD_create_response_from_buffer_static (2,
107 MHD_RESPMEM_PERSISTENT); 107 "OK");
108 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 108 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
109 MHD_destroy_response (response); 109 MHD_destroy_response (response);
110 *req_cls = NULL; 110 *req_cls = NULL;