From d170754b7d5365bf3e2f7277dd6a6ab065249aa2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 15 Feb 2017 13:32:39 +0100 Subject: [PATCH] convert tls_closed to 'bool' --- src/microhttpd/connection_https.c | 4 ++-- src/microhttpd/internal.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c index f1f1f90c..dea9956d 100644 --- a/src/microhttpd/connection_https.c +++ b/src/microhttpd/connection_https.c @@ -191,10 +191,10 @@ MHD_set_https_callbacks (struct MHD_Connection *connection) int MHD_tls_connection_shutdown (struct MHD_Connection *connection) { - if (MHD_NO != connection->tls_closed) + if (connection->tls_closed) return MHD_NO; - connection->tls_closed = MHD_YES; + connection->tls_closed = true; return (GNUTLS_E_SUCCESS == gnutls_bye(connection->tls_session, GNUTLS_SHUT_WR)) ? MHD_YES : MHD_NO; } diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index c47ed06d..f2e61d51 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h @@ -937,7 +937,7 @@ struct MHD_Connection /** * TLS layer was shut down? */ - int tls_closed; + bool tls_closed; #endif /* HTTPS_SUPPORT */ /**