From d8045b5e1580a1d0b89a232fd61c10d25a95e769 Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Fri, 13 Dec 2013 19:45:48 +0100 Subject: [PATCH] [2246] Another Solaris 11 compilation fix --- src/lib/dhcp/iface_mgr_sun.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/dhcp/iface_mgr_sun.cc b/src/lib/dhcp/iface_mgr_sun.cc index 7c1b615453..fe2b0b3df2 100644 --- a/src/lib/dhcp/iface_mgr_sun.cc +++ b/src/lib/dhcp/iface_mgr_sun.cc @@ -54,14 +54,14 @@ IfaceMgr::detectIfaces() { const char * ifname = ifptr->ifa_name; uint ifindex = 0; - if(!(ifindex = if_nametoindex(ifname))) { + if (!(ifindex = if_nametoindex(ifname))) { // Interface name does not have corresponding index ... freeifaddrs(iflist); isc_throw(Unexpected, "Interface " << ifname << " has no index"); } iface_iter = ifaces.find(ifname); - if(iface_iter != ifaceLst.end()) { + if (iface_iter != ifaces.end()) { continue; } @@ -79,7 +79,7 @@ IfaceMgr::detectIfaces() { } // Common byte pointer for following data const uint8_t * ptr = 0; - if(ifptr->ifa_addr->sa_family == AF_LINK) { + if (ifptr->ifa_addr->sa_family == AF_LINK) { // HWAddr struct sockaddr_dl * ldata = reinterpret_cast(ifptr->ifa_addr); @@ -87,7 +87,7 @@ IfaceMgr::detectIfaces() { iface_iter->second.setHWType(ldata->sdl_type); iface_iter->second.setMac(ptr, ldata->sdl_alen); - } else if(ifptr->ifa_addr->sa_family == AF_INET6) { + } else if (ifptr->ifa_addr->sa_family == AF_INET6) { // IPv6 Addr struct sockaddr_in6 * adata = reinterpret_cast(ifptr->ifa_addr);