summaryrefslogtreecommitdiff
path: root/Kernel/Net/TCPSocket.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-12-30 22:44:54 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-31 21:51:00 +0100
commitbbe787a0afd51307cdac2c023895c19df31519ca (patch)
tree44dc80cf50b22b461c27c1e9d99fa2c9ff00e22e /Kernel/Net/TCPSocket.cpp
parent2568a93b5dd29d2b06d613a4ece502ee696f189a (diff)
downloadserenity-bbe787a0afd51307cdac2c023895c19df31519ca.zip
Everywhere: Re-format with clang-format-11
Compared to version 10 this fixes a bunch of formatting issues, mostly around structs/classes with attributes like [[gnu::packed]], and incorrect insertion of spaces in parameter types ("T &"/"T &&"). I also removed a bunch of // clang-format off/on and FIXME comments that are no longer relevant - on the other hand it tried to destroy a couple of neatly formatted comments, so I had to add some as well.
Diffstat (limited to 'Kernel/Net/TCPSocket.cpp')
-rw-r--r--Kernel/Net/TCPSocket.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp
index ebcce2e2a7..02f03c6f6f 100644
--- a/Kernel/Net/TCPSocket.cpp
+++ b/Kernel/Net/TCPSocket.cpp
@@ -310,8 +310,7 @@ void TCPSocket::receive_tcp_packet(const TCPPacket& packet, u16 size)
NetworkOrdered<u16> TCPSocket::compute_tcp_checksum(const IPv4Address& source, const IPv4Address& destination, const TCPPacket& packet, u16 payload_size)
{
- struct [[gnu::packed]] PseudoHeader
- {
+ struct [[gnu::packed]] PseudoHeader {
IPv4Address source;
IPv4Address destination;
u8 zero;