Explicit cast to prevent error

This commit is contained in:
2025-09-08 22:06:32 -04:00
parent fff611cc72
commit 7e51272873

View File

@@ -156,7 +156,7 @@ SOCKET create_remote (int network,char transport, const char* address,int port,s
This should be set to the size of 'sockaddr_in' for IPv4, and 'sockaddr_in6' for IPv6.
See https://stackoverflow.com/questions/73707162/socket-bind-failed-with-invalid-argument-error-for-program-running-on-macos */
int i = connect(socket,remote_addr_struct,(socklen_t)addrlen);
int i = connect(socket,(const struct sockaddr *)remote_addr_struct,(socklen_t)addrlen);
if (i < 0) {
return (-1 * errno);
}