talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 56c47299c6f3146a8354cd63c1c8c385cdd66a1b
parent 57564ff24f43543ddda563c2d1fe7b12dcb8730a
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date:   Sun, 20 Apr 2025 23:47:17 -0700

Fix -Wincompatible-pointer-types warning

Windows defines optval as a char *, unlike other platforms which define it
as a void *.  Re-adding the explicit cast fixes the warning.

Diffstat:
Msrc/common/socket.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/socket.c b/src/common/socket.c @@ -720,7 +720,7 @@ static gboolean sock_connect_async_cb(GIOChannel *source, g_io_channel_unref(source); len = sizeof(val); - if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &val, &len) < 0) { + if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&val, &len) < 0) { perror("getsockopt"); close(fd); sock_connect_address_list_async(conn_data);