Skip to content

Commit

Permalink
Merge pull request #1886 from Azaezel/socketSigShenanigans
Browse files Browse the repository at this point in the history
looks like getsockname needs a slightly different signature for crossplat support
  • Loading branch information
Areloch authored Dec 29, 2016
2 parents 4257d14 + 0831472 commit 46d81f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/source/platform/platformNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ namespace PlatformNetState
if (requiredFamily == AF_INET)
{
sockaddr_in ipAddr;
int len = sizeof(ipAddr);
socklen_t len = sizeof(ipAddr);
if (getsockname(socketFd, (struct sockaddr*)&ipAddr, &len) >= 0)
{
IPSocketToNetAddress(&ipAddr, outAddress);
Expand All @@ -382,7 +382,7 @@ namespace PlatformNetState
else if (requiredFamily == AF_INET6)
{
sockaddr_in6 ipAddr;
int len = sizeof(ipAddr);
socklen_t len = sizeof(ipAddr);
if (getsockname(socketFd, (struct sockaddr*)&ipAddr, &len) >= 0)
{
IPSocket6ToNetAddress(&ipAddr, outAddress);
Expand Down

0 comments on commit 46d81f5

Please sign in to comment.