convert tls_closed to 'bool'

This commit is contained in:
Christian Grothoff
2017-02-15 13:32:39 +01:00
parent 925adb3889
commit d170754b7d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -937,7 +937,7 @@ struct MHD_Connection
/**
* TLS layer was shut down?
*/
int tls_closed;
bool tls_closed;
#endif /* HTTPS_SUPPORT */
/**