summaryrefslogtreecommitdiff
path: root/Servers/LookupServer
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-05-28 11:53:16 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-28 17:31:20 +0200
commit0dc9af5f7e26b0dfa42cb75c900b9ef7a2192425 (patch)
tree93dbbbeb714f258bd7fb044633eb83bdcd908286 /Servers/LookupServer
parentc11351ac507f863699d78aec46a77bd4d59e743c (diff)
downloadserenity-0dc9af5f7e26b0dfa42cb75c900b9ef7a2192425.zip
Add clang-format file
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
Diffstat (limited to 'Servers/LookupServer')
-rw-r--r--Servers/LookupServer/DNSPacket.h3
-rw-r--r--Servers/LookupServer/DNSRecord.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/Servers/LookupServer/DNSPacket.h b/Servers/LookupServer/DNSPacket.h
index d1ba5c0fb9..fddf35a5b1 100644
--- a/Servers/LookupServer/DNSPacket.h
+++ b/Servers/LookupServer/DNSPacket.h
@@ -3,7 +3,8 @@
#include <AK/NetworkOrdered.h>
#include <AK/Types.h>
-class [[gnu::packed]] DNSPacket {
+class [[gnu::packed]] DNSPacket
+{
public:
DNSPacket()
: m_recursion_desired(false)
diff --git a/Servers/LookupServer/DNSRecord.h b/Servers/LookupServer/DNSRecord.h
index 954fbd036a..5989f8c99a 100644
--- a/Servers/LookupServer/DNSRecord.h
+++ b/Servers/LookupServer/DNSRecord.h
@@ -3,9 +3,10 @@
#include <AK/NetworkOrdered.h>
#include <AK/Types.h>
-class [[gnu::packed]] DNSRecord {
+class [[gnu::packed]] DNSRecord
+{
public:
- DNSRecord() { }
+ DNSRecord() {}
word name() const { return m_name; }
word type() const { return m_type; }