From 21f2d1def7a4dc1179434d4f67e8324c5cabb75a Mon Sep 17 00:00:00 2001 From: John Date: Sun, 27 Oct 2024 10:03:33 +0100 Subject: [PATCH] another try to make alpine compile --- src/lib/utils/tcpsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/tcpsocket.cpp b/src/lib/utils/tcpsocket.cpp index b01e656b..6c7ac9cd 100755 --- a/src/lib/utils/tcpsocket.cpp +++ b/src/lib/utils/tcpsocket.cpp @@ -69,7 +69,7 @@ int tcpConnToUdpOptions, int tcpKeepAliveInterval, struct in_addr* storeIntf) { struct in_addr intf; intf.s_addr = INADDR_ANY; if (pos) { - char* str = (char*)strdupa(server); // (char*) needed for wrong return type on e.g. Alpine + char* str = reinterpret_cast(strdupa(server)); // (char*) needed for wrong return type on e.g. Alpine char* ifa = strchr(str, '@'); ifa[0] = 0; ifa++;