From 3c1f0a9bec2c2f5ebf9a4d0852395e85a35d2900 Mon Sep 17 00:00:00 2001 From: CesarRoaldes <43323641+CesarRoaldes@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:01:59 +0100 Subject: [PATCH] Fix: gcc-14 point type checking error (#207) --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 7600b2e..4dd3bb1 100644 --- a/utils.c +++ b/utils.c @@ -266,7 +266,7 @@ struct bufferevent* red_connect_relay_ssl(const char *ifname, if (timeout_write) bufferevent_set_timeouts(underlying, NULL, timeout_write); - error = connect(relay_fd, addr, addr_size(addr)); + error = connect(relay_fd, (struct sockaddr *)addr, addr_size(addr)); if (error && errno != EINPROGRESS) { log_errno(LOG_NOTICE, "connect"); goto fail;