Fix C++ build error

This commit is contained in:
cpq 2020-12-11 18:21:29 +00:00
parent 90686ee5c9
commit 7ad6a08002

View File

@ -475,7 +475,7 @@ static void connect_conn(struct mg_connection *c) {
if (rc == EAGAIN || rc == EWOULDBLOCK) rc = 0;
c->is_connecting = 0;
if (rc) {
mg_call(c, MG_EV_ERROR, "connect error");
mg_call(c, MG_EV_ERROR, (void *) "connect error");
c->is_closing = 1;
} else {
if (c->is_tls_hs && mg_tls_handshake(c)) {