diff --git a/premake5.lua b/premake5.lua index c0695f7d..64f4a0c9 100644 --- a/premake5.lua +++ b/premake5.lua @@ -350,7 +350,7 @@ newaction { trigger = "clean", - description = "Clean all yojimbo build files and output", + description = "Clean all build files and output", execute = function () diff --git a/yojimbo_address.cpp b/yojimbo_address.cpp index 5e31d3d5..ace6d0cb 100644 --- a/yojimbo_address.cpp +++ b/yojimbo_address.cpp @@ -117,14 +117,14 @@ namespace yojimbo if ( addr->ss_family == AF_INET ) { - const sockaddr_in * addr_ipv4 = reinterpret_cast( 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( 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 );