commit 2497b538344743211b7f0b188c8cfa2384969047
parent 76f7883443bab649213b10e0a0ee12aa56442af7
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 21 Jun 2013 16:16:52 +0000
make it clear that we intentionally ignore those return values, as there is no good way to handle those errors anyway
Diffstat:
2 files changed, 44 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
@@ -317,19 +317,19 @@ check_nonce_nc (struct MHD_Connection *connection,
* then only increase the nonce counter by one.
*/
- pthread_mutex_lock (&connection->daemon->nnc_lock);
+ (void) pthread_mutex_lock (&connection->daemon->nnc_lock);
if (0 == nc)
{
strcpy(connection->daemon->nnc[off].nonce,
nonce);
connection->daemon->nnc[off].nc = 0;
- pthread_mutex_unlock (&connection->daemon->nnc_lock);
+ (void) pthread_mutex_unlock (&connection->daemon->nnc_lock);
return MHD_YES;
}
if ( (nc <= connection->daemon->nnc[off].nc) ||
(0 != strcmp(connection->daemon->nnc[off].nonce, nonce)) )
{
- pthread_mutex_unlock (&connection->daemon->nnc_lock);
+ (void) pthread_mutex_unlock (&connection->daemon->nnc_lock);
#if HAVE_MESSAGES
MHD_DLOG (connection->daemon,
"Stale nonce received. If this happens a lot, you should probably increase the size of the nonce array.\n");
@@ -337,7 +337,7 @@ check_nonce_nc (struct MHD_Connection *connection,
return MHD_NO;
}
connection->daemon->nnc[off].nc = nc;
- pthread_mutex_unlock (&connection->daemon->nnc_lock);
+ (void) pthread_mutex_unlock (&connection->daemon->nnc_lock);
return MHD_YES;
}
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
@@ -93,6 +93,46 @@ enum MHD_PollActions
/**
+ * State of the socket with respect to epoll.
+ */
+enum MHD_EpollState
+ {
+
+ /**
+ *
+ */
+ MHD_EPOLL_STATE_NOTHING = 0,
+
+ /**
+ *
+ */
+ MHD_EPOLL_STATE_NOTHING = 0,
+
+ /**
+ *
+ */
+ MHD_EPOLL_STATE_NOTHING = 0,
+
+ /**
+ *
+ */
+ MHD_EPOLL_STATE_NOTHING = 0,
+
+ /**
+ *
+ */
+ MHD_EPOLL_STATE_NOTHING = 0,
+
+ /**
+ *
+ */
+ MHD_EPOLL_STATE_NOTHING = 0,
+
+
+ };
+
+
+/**
* Socket descriptor and events we care about.
*/
struct MHD_Pollfd