mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
remove cast to int * in socket recvfrom
This commit is contained in:
parent
0b48eab1fb
commit
9c73bf286e
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ bool UDPSocket::receive(sockaddr *recvAddress, void *receivedData, ssize_t *rece
|
|||
socklen_t addressSize = sizeof(&recvAddress);
|
||||
|
||||
*receivedBytes = recvfrom(handle, static_cast<char*>(receivedData), MAX_BUFFER_LENGTH_BYTES,
|
||||
0, recvAddress, reinterpret_cast<int*>(&addressSize));
|
||||
0, recvAddress, &addressSize);
|
||||
|
||||
return (*receivedBytes > 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue