libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 51b64e8beca897a78924098a34e05fa8f542dbcf
parent 3516d336f1471eca64be65fe2c5d6d64e8bb2fa1
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat,  3 Jun 2017 22:43:09 +0300

MHD_connection_mark_closed_(): changed return type to 'bool'

Diffstat:
Msrc/microhttpd/connection.c | 2+-
Msrc/microhttpd/connection_https.c | 4++--
Msrc/microhttpd/connection_https.h | 4++--
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git 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 @@ -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 @@ -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 */