Route: Style fixes; No functional change

This commit is contained in:
Alexander von Gluck IV
2013-06-29 13:18:52 -05:00
parent 16e486eb4d
commit 669d40c826
+3 -3
View File
@@ -191,7 +191,7 @@ list_routes(int socket, const char *interfaceName, route_entry &route)
const address_family *family = NULL; const address_family *family = NULL;
for (int32 i = 0; kFamilies[i].family >= 0; i++) { for (int32 i = 0; kFamilies[i].family >= 0; i++) {
if (interface->ifr_route.destination->sa_family if (interface->ifr_route.destination->sa_family
== kFamilies[i].family) { == kFamilies[i].family) {
family = &kFamilies[i]; family = &kFamilies[i];
break; break;
} }
@@ -223,7 +223,7 @@ list_routes(int socket, const char *interfaceName, route_entry &route)
BNetworkAddress mask; BNetworkAddress mask;
mask.SetTo(*route.mask); mask.SetTo(*route.mask);
if (family->preferredPrefixFormat if (family->preferredPrefixFormat
== PREFIX_PREFER_NETMASK) { == PREFIX_PREFER_NETMASK) {
printf(" %*s ", addressLength, printf(" %*s ", addressLength,
mask.ToString().String()); mask.ToString().String());
} else { } else {
@@ -231,7 +231,7 @@ list_routes(int socket, const char *interfaceName, route_entry &route)
} }
} else { } else {
if (family->preferredPrefixFormat if (family->preferredPrefixFormat
== PREFIX_PREFER_NETMASK) { == PREFIX_PREFER_NETMASK) {
printf(" %*s ", addressLength, "-"); printf(" %*s ", addressLength, "-");
} else } else
printf(" "); printf(" ");