diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-04-24 15:27:32 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-25 09:38:27 +0200 |
commit | 8d6e9fad40d493e6f2027cec37212956294a591f (patch) | |
tree | 71816f325880a99ef5b623d9795f2eded3d69ca7 /Kernel/Net/Routing.cpp | |
parent | 0d5827f8652462715f6c2f91e2b91b2077547ae6 (diff) | |
download | serenity-8d6e9fad40d493e6f2027cec37212956294a591f.zip |
Kernel: Remove the now defunct `LOCKER(..)` macro.
Diffstat (limited to 'Kernel/Net/Routing.cpp')
-rw-r--r-- | Kernel/Net/Routing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/Routing.cpp b/Kernel/Net/Routing.cpp index c642e5bc8e..6f2f944fb6 100644 --- a/Kernel/Net/Routing.cpp +++ b/Kernel/Net/Routing.cpp @@ -104,7 +104,7 @@ Lockable<HashMap<IPv4Address, MACAddress>>& arp_table() void update_arp_table(const IPv4Address& ip_addr, const MACAddress& addr) { - LOCKER(arp_table().lock()); + Locker locker(arp_table().lock()); arp_table().resource().set(ip_addr, addr); s_arp_table_block_condition->unblock(ip_addr, addr); @@ -196,7 +196,7 @@ RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source, c return { adapter, { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } }; { - LOCKER(arp_table().lock()); + Locker locker(arp_table().lock()); auto addr = arp_table().resource().get(next_hop_ip); if (addr.has_value()) { dbgln_if(ROUTING_DEBUG, "Routing: Using cached ARP entry for {} ({})", next_hop_ip, addr.value().to_string()); |