[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33011 - libmicrohttpd/src/microhttpd
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33011 - libmicrohttpd/src/microhttpd |
Date: |
Thu, 10 Apr 2014 09:46:35 +0200 |
Author: grothoff
Date: 2014-04-10 09:46:35 +0200 (Thu, 10 Apr 2014)
New Revision: 33011
Modified:
libmicrohttpd/src/microhttpd/connection.c
libmicrohttpd/src/microhttpd/response.c
Log:
-eliminate warnings
Modified: libmicrohttpd/src/microhttpd/connection.c
===================================================================
--- libmicrohttpd/src/microhttpd/connection.c 2014-04-10 07:43:05 UTC (rev
33010)
+++ libmicrohttpd/src/microhttpd/connection.c 2014-04-10 07:46:35 UTC (rev
33011)
@@ -365,7 +365,7 @@
/* either error or http 1.0 transfer, close socket! */
response->total_size = connection->response_write_position;
if (NULL != response->crc)
- MHD_mutex_unlock_ (&response->mutex);
+ (void) MHD_mutex_unlock_ (&response->mutex);
if ( ((ssize_t)MHD_CONTENT_READER_END_OF_STREAM) == ret)
MHD_connection_close (connection, MHD_REQUEST_TERMINATED_COMPLETED_OK);
else
@@ -379,7 +379,7 @@
{
connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY;
if (NULL != response->crc)
- MHD_mutex_unlock_ (&response->mutex);
+ (void) MHD_mutex_unlock_ (&response->mutex);
return MHD_NO;
}
return MHD_YES;
@@ -2090,7 +2090,7 @@
case MHD_CONNECTION_NORMAL_BODY_READY:
response = connection->response;
if (NULL != response->crc)
- MHD_mutex_lock_ (&response->mutex);
+ (void) MHD_mutex_lock_ (&response->mutex);
if (MHD_YES != try_ready_normal_body (connection))
break;
ret = connection->send_cls (connection,
@@ -2110,7 +2110,7 @@
response->data_start]);
#endif
if (NULL != response->crc)
- MHD_mutex_unlock_ (&response->mutex);
+ (void) MHD_mutex_unlock_ (&response->mutex);
if (ret < 0)
{
if ((err == EINTR) || (err == EAGAIN) || (EWOULDBLOCK == err))
@@ -2461,18 +2461,18 @@
break;
case MHD_CONNECTION_NORMAL_BODY_UNREADY:
if (NULL != connection->response->crc)
- MHD_mutex_lock_ (&connection->response->mutex);
+ (void) MHD_mutex_lock_ (&connection->response->mutex);
if (0 == connection->response->total_size)
{
if (NULL != connection->response->crc)
- MHD_mutex_unlock_ (&connection->response->mutex);
+ (void) MHD_mutex_unlock_ (&connection->response->mutex);
connection->state = MHD_CONNECTION_BODY_SENT;
continue;
}
if (MHD_YES == try_ready_normal_body (connection))
{
if (NULL != connection->response->crc)
- MHD_mutex_unlock_ (&connection->response->mutex);
+ (void) MHD_mutex_unlock_ (&connection->response->mutex);
connection->state = MHD_CONNECTION_NORMAL_BODY_READY;
break;
}
@@ -2483,23 +2483,23 @@
break;
case MHD_CONNECTION_CHUNKED_BODY_UNREADY:
if (NULL != connection->response->crc)
- MHD_mutex_lock_ (&connection->response->mutex);
+ (void) MHD_mutex_lock_ (&connection->response->mutex);
if (0 == connection->response->total_size)
{
if (NULL != connection->response->crc)
- MHD_mutex_unlock_ (&connection->response->mutex);
+ (void) MHD_mutex_unlock_ (&connection->response->mutex);
connection->state = MHD_CONNECTION_BODY_SENT;
continue;
}
if (MHD_YES == try_ready_chunked_body (connection))
{
if (NULL != connection->response->crc)
- MHD_mutex_unlock_ (&connection->response->mutex);
+ (void) MHD_mutex_unlock_ (&connection->response->mutex);
connection->state = MHD_CONNECTION_CHUNKED_BODY_READY;
continue;
}
if (NULL != connection->response->crc)
- MHD_mutex_unlock_ (&connection->response->mutex);
+ (void) MHD_mutex_unlock_ (&connection->response->mutex);
break;
case MHD_CONNECTION_BODY_SENT:
build_header_response (connection);
Modified: libmicrohttpd/src/microhttpd/response.c
===================================================================
--- libmicrohttpd/src/microhttpd/response.c 2014-04-10 07:43:05 UTC (rev
33010)
+++ libmicrohttpd/src/microhttpd/response.c 2014-04-10 07:46:35 UTC (rev
33011)
@@ -397,7 +397,7 @@
{
if (NULL == (tmp = malloc (size)))
{
- MHD_mutex_destroy_ (&response->mutex);
+ (void) MHD_mutex_destroy_ (&response->mutex);
free (response);
return NULL;
}
@@ -454,14 +454,14 @@
if (NULL == response)
return;
- MHD_mutex_lock_ (&response->mutex);
+ (void) MHD_mutex_lock_ (&response->mutex);
if (0 != --(response->reference_count))
{
- MHD_mutex_unlock_ (&response->mutex);
+ (void) MHD_mutex_unlock_ (&response->mutex);
return;
}
- MHD_mutex_unlock_ (&response->mutex);
- MHD_mutex_destroy_ (&response->mutex);
+ (void) MHD_mutex_unlock_ (&response->mutex);
+ (void) MHD_mutex_destroy_ (&response->mutex);
if (response->crfc != NULL)
response->crfc (response->crc_cls);
while (NULL != response->first_header)
@@ -479,9 +479,9 @@
void
MHD_increment_response_rc (struct MHD_Response *response)
{
- MHD_mutex_lock_ (&response->mutex);
+ (void) MHD_mutex_lock_ (&response->mutex);
(response->reference_count)++;
- MHD_mutex_unlock_ (&response->mutex);
+ (void) MHD_mutex_unlock_ (&response->mutex);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33011 - libmicrohttpd/src/microhttpd,
gnunet <=