summaryrefslogtreecommitdiff
path: root/Kernel/Net/Routing.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-17 15:04:27 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-17 15:04:27 +0100
commit48f7c28a5cee78398c64d94f7dc3c6bf5a66ce77 (patch)
treec072ef54fa2e311ac8119e2f2f1ed69c5a22a061 /Kernel/Net/Routing.cpp
parent4f4af24b9d489634a66d818260a7f87964faf421 (diff)
downloadserenity-48f7c28a5cee78398c64d94f7dc3c6bf5a66ce77.zip
Kernel: Replace "current" with Thread::current and Process::current
Suggested by Sergey. The currently running Thread and Process are now Thread::current and Process::current respectively. :^)
Diffstat (limited to 'Kernel/Net/Routing.cpp')
-rw-r--r--Kernel/Net/Routing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/Routing.cpp b/Kernel/Net/Routing.cpp
index 480828faf2..f101a4e4e0 100644
--- a/Kernel/Net/Routing.cpp
+++ b/Kernel/Net/Routing.cpp
@@ -137,7 +137,7 @@ RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source)
request.set_sender_protocol_address(adapter->ipv4_address());
adapter->send({ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, request);
- (void)current->block_until("Routing (ARP)", [next_hop_ip] {
+ (void)Thread::current->block_until("Routing (ARP)", [next_hop_ip] {
return arp_table().resource().get(next_hop_ip).has_value();
});