summaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 185cd2cd..3e967e68 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -257,7 +257,7 @@ MHD_create_response_from_callback (uint64_t size,
response->fd = -1;
response->data = (void *) &response[1];
response->data_buffer_size = block_size;
- if (MHD_YES != MHD_mutex_create_ (&response->mutex))
+ if (!MHD_mutex_init_ (&response->mutex))
{
free (response);
return NULL;
@@ -513,7 +513,7 @@ MHD_create_response_from_data (size_t size,
return NULL;
memset (response, 0, sizeof (struct MHD_Response));
response->fd = -1;
- if (MHD_YES != MHD_mutex_create_ (&response->mutex))
+ if (!MHD_mutex_init_ (&response->mutex))
{
free (response);
return NULL;