summaryrefslogtreecommitdiff
path: root/Kernel/Net/ICMP.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-01 20:58:27 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 21:24:45 +0100
commit086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch)
tree02b3699a66735ef806d9b46353491f18f8e4e7b4 /Kernel/Net/ICMP.h
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'Kernel/Net/ICMP.h')
-rw-r--r--Kernel/Net/ICMP.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/ICMP.h b/Kernel/Net/ICMP.h
index 0b0e807ce8..8f5ea3623a 100644
--- a/Kernel/Net/ICMP.h
+++ b/Kernel/Net/ICMP.h
@@ -30,7 +30,7 @@ public:
u16 checksum() const { return m_checksum; }
void set_checksum(u16 w) { m_checksum = w; }
- const void* payload() const { return this + 1; }
+ void const* payload() const { return this + 1; }
void* payload() { return this + 1; }
private:
@@ -47,5 +47,5 @@ struct [[gnu::packed]] ICMPEchoPacket {
NetworkOrdered<u16> identifier;
NetworkOrdered<u16> sequence_number;
void* payload() { return this + 1; }
- const void* payload() const { return this + 1; }
+ void const* payload() const { return this + 1; }
};