Replaced MHD_RESPMEM_PERSISTENT usage in examples and code

New functions do not produce compiler warnings.
This commit is contained in:
Evgeny Grin (Karlson2k)
2022-05-14 15:07:47 +03:00
parent 4fc1bbfd5b
commit 85ae657849
21 changed files with 67 additions and 99 deletions
+1 -3
View File
@@ -120,9 +120,7 @@ ahc_empty (void *cls,
return MHD_YES;
}
*req_cls = NULL;
response = MHD_create_response_from_buffer (0,
NULL,
MHD_RESPMEM_PERSISTENT);
response = MHD_create_response_empty (MHD_RF_NONE);
ret = MHD_queue_response (connection,
MHD_HTTP_OK,
response);