network stack: Style fix of constant name.
This commit is contained in:
parent
ebea950b2d
commit
359d64ed66
@ -323,7 +323,7 @@ list_routes(net_domain_private* domain, void* buffer, size_t size)
|
||||
RecursiveLocker _(domain->lock);
|
||||
|
||||
RouteList::Iterator iterator = domain->routes.GetIterator();
|
||||
const size_t baseSize = IF_NAMESIZE + sizeof(route_entry);
|
||||
const size_t kBaseSize = IF_NAMESIZE + sizeof(route_entry);
|
||||
size_t spaceLeft = size;
|
||||
|
||||
sockaddr zeros;
|
||||
@ -334,7 +334,7 @@ list_routes(net_domain_private* domain, void* buffer, size_t size)
|
||||
while (iterator.HasNext()) {
|
||||
net_route* route = iterator.Next();
|
||||
|
||||
size = baseSize;
|
||||
size = kBaseSize;
|
||||
|
||||
sockaddr* destination = NULL;
|
||||
sockaddr* mask = NULL;
|
||||
@ -372,7 +372,7 @@ list_routes(net_domain_private* domain, void* buffer, size_t size)
|
||||
request.ifr_route.flags = route->flags;
|
||||
|
||||
// copy data into userland buffer
|
||||
if (user_memcpy(buffer, &request, baseSize) < B_OK
|
||||
if (user_memcpy(buffer, &request, kBaseSize) < B_OK
|
||||
|| (route->destination != NULL
|
||||
&& user_memcpy(request.ifr_route.destination,
|
||||
route->destination, route->destination->sa_len) < B_OK)
|
||||
|
Loading…
Reference in New Issue
Block a user