net server: Remove un-needed braces. Look for network stack vs ipv4

This commit is contained in:
Alexander von Gluck IV 2012-02-10 09:58:40 -06:00
parent fc480b13f4
commit d2b09eeb7f

View File

@ -388,9 +388,9 @@ NetServer::_IsValidFamily(uint32 family)
{
// Mostly verifies add-on is present
int socket = ::socket(family, SOCK_DGRAM, 0);
if (socket < 0) {
if (socket < 0)
return false;
}
close(socket);
return true;
}
@ -823,7 +823,7 @@ void
NetServer::_BringUpInterfaces()
{
// we need a socket to talk to the networking stack
if (!_IsValidFamily(AF_INET)) {
if (!_IsValidFamily(AF_LINK)) {
fprintf(stderr, "%s: The networking stack doesn't seem to be "
"available.\n", Name());
Quit();