Skip to content

Commit

Permalink
for windows :(
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 4, 2024
1 parent c979ba2 commit 17595d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dpp/voice/enabled/discover_ip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ std::string discord_voice_client::discover_ip() {
log(ll_warning, "Could not connect socket for IP discovery");
return "";
}
if (::send(socket.fd, &discovery, sizeof(discovery), 0) == -1) {
if (::send(socket.fd, (const char*)&discovery, sizeof(discovery), 0) == -1) {
log(ll_warning, "Could not send packet for IP discovery");
return "";
}
Expand All @@ -120,7 +120,7 @@ std::string discord_voice_client::discover_ip() {
log(ll_warning, "Timed out in IP discovery");
return "";
default:
if (recv(socket.fd, &discovery, sizeof(discovery), 0) == -1) {
if (recv(socket.fd, (char*)&discovery, sizeof(discovery), 0) == -1) {
log(ll_warning, "Could not receive packet for IP discovery");
return "";
}
Expand All @@ -131,4 +131,4 @@ std::string discord_voice_client::discover_ip() {
return {};
}

}
}

0 comments on commit 17595d1

Please sign in to comment.