diff --git a/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp b/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp index a57634eb14..a03549a080 100644 --- a/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp +++ b/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp @@ -168,7 +168,7 @@ namespace Sessions endpoint.sin_family = AF_INET; endpoint.sin_addr = std::bit_cast(adapterIP); - ret = bind(client, (const sockaddr*)&endpoint, sizeof(endpoint)); + ret = bind(client, reinterpret_cast(&endpoint), sizeof(endpoint)); if (ret != 0) Console.Error("DEV9: UDP: Failed to bind socket. Error: %d", @@ -212,7 +212,7 @@ namespace Sessions endpoint.sin_addr = std::bit_cast(destIP); endpoint.sin_port = htons(destPort); - ret = connect(client, (const sockaddr*)&endpoint, sizeof(endpoint)); + ret = connect(client, reinterpret_cast(&endpoint), sizeof(endpoint)); if (ret != 0) {