gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 02/02: MHD_connection_mark_closed_(): chang


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 02/02: MHD_connection_mark_closed_(): changed return type to 'bool'
Date: Sat, 03 Jun 2017 21:43:50 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 51b64e8beca897a78924098a34e05fa8f542dbcf
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sat Jun 3 22:43:09 2017 +0300

    MHD_connection_mark_closed_(): changed return type to 'bool'
---
 src/microhttpd/connection.c       | 2 +-
 src/microhttpd/connection_https.c | 4 ++--
 src/microhttpd/connection_https.h | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 915d3e1d..f7a00bde 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -567,7 +567,7 @@ MHD_connection_mark_closed_ (struct MHD_Connection 
*connection)
        * remote side as end of transmission. */
       if (0 != (daemon->options & MHD_USE_TLS))
         {
-          if (MHD_NO == MHD_tls_connection_shutdown(connection))
+          if (! MHD_tls_connection_shutdown(connection))
             shutdown (connection->socket_fd,
                       SHUT_WR);
         }
diff --git a/src/microhttpd/connection_https.c 
b/src/microhttpd/connection_https.c
index 7a1171ce..614726b7 100644
--- a/src/microhttpd/connection_https.c
+++ b/src/microhttpd/connection_https.c
@@ -137,9 +137,9 @@ MHD_set_https_callbacks (struct MHD_Connection *connection)
  * Initiate shutdown of TLS layer of connection.
  *
  * @param connection to use
- * @return #MHD_YES if succeed, #MHD_NO otherwise.
+ * @return true if succeed, false otherwise.
  */
-int
+bool
 MHD_tls_connection_shutdown (struct MHD_Connection *connection)
 {
   if (! connection->tls_closed)
diff --git a/src/microhttpd/connection_https.h 
b/src/microhttpd/connection_https.h
index 6bb218b6..b9686870 100644
--- a/src/microhttpd/connection_https.h
+++ b/src/microhttpd/connection_https.h
@@ -43,9 +43,9 @@ MHD_set_https_callbacks (struct MHD_Connection *connection);
  * Initiate shutdown of TLS layer of connection.
  *
  * @param connection to use
- * @return #MHD_YES if succeed, #MHD_NO otherwise.
+ * @return true if succeed, false otherwise.
  */
-int
+bool
 MHD_tls_connection_shutdown (struct MHD_Connection *connection);
 #endif /* HTTPS_SUPPORT */
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]