From fef2a8678be304b3b7f9d9a2e50cc47a99f44504 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 21 May 2024 11:05:23 +0800 Subject: [PATCH] Fix -Wcast-function-type errors --------- Signed-off-by: Andy Pan --- bufferevent_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index 60cdc86f..62753256 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -424,7 +424,7 @@ static struct le_ssl_ops le_openssl_ops = { SSL_handshake_is_ok, SSL_is_want_read, SSL_is_want_write, - (int (*)(void *))be_openssl_get_fd, + (evutil_socket_t (*)(void *))be_openssl_get_fd, be_openssl_bio_set_fd, init_bio_counts, decrement_buckets,