Slight simplification, no functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40499 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2011-02-14 23:48:32 +00:00
parent a1410c52e9
commit d6a17b61aa

View File

@ -448,8 +448,7 @@ ipv4_set_to_defaults(sockaddr *_defaultMask, sockaddr *_defaultBroadcast,
defaultBroadcast->sin_len = sizeof(sockaddr_in); defaultBroadcast->sin_len = sizeof(sockaddr_in);
defaultBroadcast->sin_family = AF_INET; defaultBroadcast->sin_family = AF_INET;
defaultBroadcast->sin_port = 0; defaultBroadcast->sin_port = 0;
defaultBroadcast->sin_addr.s_addr = (address->sin_addr.s_addr & net) defaultBroadcast->sin_addr.s_addr = address->sin_addr.s_addr | ~net;
| ~net;
} }
return B_OK; return B_OK;