diff options
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r-- | src/microhttpd/response.c | 4 |
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, | |||
257 | response->fd = -1; | 257 | response->fd = -1; |
258 | response->data = (void *) &response[1]; | 258 | response->data = (void *) &response[1]; |
259 | response->data_buffer_size = block_size; | 259 | response->data_buffer_size = block_size; |
260 | if (MHD_YES != MHD_mutex_create_ (&response->mutex)) | 260 | if (!MHD_mutex_init_ (&response->mutex)) |
261 | { | 261 | { |
262 | free (response); | 262 | free (response); |
263 | return NULL; | 263 | return NULL; |
@@ -513,7 +513,7 @@ MHD_create_response_from_data (size_t size, | |||
513 | return NULL; | 513 | return NULL; |
514 | memset (response, 0, sizeof (struct MHD_Response)); | 514 | memset (response, 0, sizeof (struct MHD_Response)); |
515 | response->fd = -1; | 515 | response->fd = -1; |
516 | if (MHD_YES != MHD_mutex_create_ (&response->mutex)) | 516 | if (!MHD_mutex_init_ (&response->mutex)) |
517 | { | 517 | { |
518 | free (response); | 518 | free (response); |
519 | return NULL; | 519 | return NULL; |