summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrapru <brapru@pm.me>2022-04-29 22:54:06 -0400
committerAndreas Kling <kling@serenityos.org>2022-04-30 16:24:33 +0200
commit863c14c4f4f2c8d91db0935f668629f331da1b57 (patch)
tree6fe5ae350dc100df0001608c02d3b48d734d97c0
parentd83f2e2ea622d538c47440428f247ff88a6dee68 (diff)
downloadserenity-863c14c4f4f2c8d91db0935f668629f331da1b57.zip
Kernel: Make Route's operator== overload const
-rw-r--r--Kernel/Net/Routing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/Routing.h b/Kernel/Net/Routing.h
index 721c64d6cb..b0db0baf2e 100644
--- a/Kernel/Net/Routing.h
+++ b/Kernel/Net/Routing.h
@@ -23,7 +23,7 @@ struct Route : public RefCounted<Route> {
{
}
- bool operator==(Route const& other)
+ bool operator==(Route const& other) const
{
return destination == other.destination && gateway == other.gateway && netmask == other.netmask && adapter.ptr() == other.adapter.ptr();
}