[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27513 - libmicrohttpd/src/microhttpd
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27513 - libmicrohttpd/src/microhttpd |
Date: |
Fri, 21 Jun 2013 18:16:52 +0200 |
Author: grothoff
Date: 2013-06-21 18:16:52 +0200 (Fri, 21 Jun 2013)
New Revision: 27513
Modified:
libmicrohttpd/src/microhttpd/digestauth.c
libmicrohttpd/src/microhttpd/internal.h
Log:
make it clear that we intentionally ignore those return values, as there is no
good way to handle those errors anyway
Modified: libmicrohttpd/src/microhttpd/digestauth.c
===================================================================
--- libmicrohttpd/src/microhttpd/digestauth.c 2013-06-21 16:15:37 UTC (rev
27512)
+++ libmicrohttpd/src/microhttpd/digestauth.c 2013-06-21 16:16:52 UTC (rev
27513)
@@ -317,19 +317,19 @@
* 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 @@
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;
}
Modified: libmicrohttpd/src/microhttpd/internal.h
===================================================================
--- libmicrohttpd/src/microhttpd/internal.h 2013-06-21 16:15:37 UTC (rev
27512)
+++ libmicrohttpd/src/microhttpd/internal.h 2013-06-21 16:16:52 UTC (rev
27513)
@@ -93,6 +93,46 @@
/**
+ * 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27513 - libmicrohttpd/src/microhttpd,
gnunet <=