Added parenthesis around ntohl value to resolve problem with CLANG compiler

This commit is contained in:
Alvin Moore 2019-09-16 11:43:28 -07:00 committed by Alex Miller
parent 8f755f0f3a
commit 6354e63269
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ const char* getInterfaceName(const IPAddress& _ip) {
if(!iter->ifa_addr)
continue;
if (iter->ifa_addr->sa_family == AF_INET && _ip.isV4()) {
uint32_t ip = ntohl(((struct sockaddr_in*)iter->ifa_addr)->sin_addr.s_addr);
uint32_t ip = ntohl((((struct sockaddr_in*)iter->ifa_addr)->sin_addr.s_addr));
if (ip == _ip.toV4()) {
ifa_name = iter->ifa_name;
break;