Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Jul 6, 2016
1 parent 9567801 commit 961a052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ newaction
{
trigger = "clean",

description = "Clean all yojimbo build files and output",
description = "Clean all build files and output",

execute = function ()

Expand Down
4 changes: 2 additions & 2 deletions yojimbo_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ namespace yojimbo

if ( addr->ss_family == AF_INET )
{
const sockaddr_in * addr_ipv4 = reinterpret_cast<const sockaddr_in*>( addr );
const sockaddr_in * addr_ipv4 = (const sockaddr_in*) addr;
m_type = ADDRESS_IPV4;
m_address_ipv4 = addr_ipv4->sin_addr.s_addr;
m_port = ntohs( addr_ipv4->sin_port );
}
else if ( addr->ss_family == AF_INET6 )
{
const sockaddr_in6 * addr_ipv6 = reinterpret_cast<const sockaddr_in6*>( addr );
const sockaddr_in6 * addr_ipv6 = (const sockaddr_in6*) addr;
m_type = ADDRESS_IPV6;
memcpy( m_address_ipv6, &addr_ipv6->sin6_addr, 16 );
m_port = ntohs( addr_ipv6->sin6_port );
Expand Down

0 comments on commit 961a052

Please sign in to comment.