diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-14 15:07:47 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-14 15:07:47 +0300 |
commit | 85ae657849685d27b79ae6b14f7248d81ec99d2c (patch) | |
tree | 5766712bc12b799cba3ee40058782b66d494d008 /src/examples/minimal_example_empty_tls.c | |
parent | 4fc1bbfd5bf3196e1f603e443b51ddec911305b4 (diff) | |
download | libmicrohttpd-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/examples/minimal_example_empty_tls.c')
-rw-r--r-- | src/examples/minimal_example_empty_tls.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/examples/minimal_example_empty_tls.c b/src/examples/minimal_example_empty_tls.c index 9c352717..c8c3763f 100644 --- a/src/examples/minimal_example_empty_tls.c +++ b/src/examples/minimal_example_empty_tls.c | |||
@@ -55,9 +55,7 @@ ahc_echo (void *cls, | |||
55 | return MHD_YES; | 55 | return MHD_YES; |
56 | } | 56 | } |
57 | *req_cls = NULL; /* reset when done */ | 57 | *req_cls = NULL; /* reset when done */ |
58 | response = MHD_create_response_from_buffer (0, | 58 | response = MHD_create_response_empty (MHD_RF_NONE); |
59 | NULL, | ||
60 | MHD_RESPMEM_PERSISTENT); | ||
61 | ret = MHD_queue_response (connection, | 59 | ret = MHD_queue_response (connection, |
62 | MHD_HTTP_NO_CONTENT, | 60 | MHD_HTTP_NO_CONTENT, |
63 | response); | 61 | response); |