From bbe787a0afd51307cdac2c023895c19df31519ca Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 30 Dec 2020 22:44:54 +0100 Subject: 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. --- Kernel/Net/TCPSocket.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Kernel/Net/TCPSocket.cpp') 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 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; -- cgit v1.2.3