diff options
author | Paramat <paramat@users.noreply.github.com> | 2019-02-23 02:41:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-23 02:41:36 +0000 |
commit | 20fb04d9fb73a9000180cd16f50bfe2646b29e2e (patch) | |
tree | df7095a65bf5da51bf8cb86210a30f4640484cd6 | |
parent | 242c9bc36e490daee0fbe74da1feae3fefa76579 (diff) | |
download | minetest-20fb04d9fb73a9000180cd16f50bfe2646b29e2e.tar.gz minetest-20fb04d9fb73a9000180cd16f50bfe2646b29e2e.tar.bz2 minetest-20fb04d9fb73a9000180cd16f50bfe2646b29e2e.zip |
Attend to LINT sillyness (#8276)
-rw-r--r-- | src/network/address.cpp | 2 | ||||
-rw-r--r-- | util/travis/clang-format-whitelist.txt | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/network/address.cpp b/src/network/address.cpp index 896b24317..05678aa62 100644 --- a/src/network/address.cpp +++ b/src/network/address.cpp @@ -282,10 +282,8 @@ bool Address::isLocalhost() const auto addr = m_address.ipv6.sin6_addr.s6_addr; -// clang-format off return memcmp(addr, localhost_bytes, 16) == 0 || memcmp(addr, mapped_ipv4_localhost, 13) == 0; -// clang-format on } return (m_address.ipv4.sin_addr.s_addr & 0xFF) == 0x7f; diff --git a/util/travis/clang-format-whitelist.txt b/util/travis/clang-format-whitelist.txt index c89520aad..e196daf73 100644 --- a/util/travis/clang-format-whitelist.txt +++ b/util/travis/clang-format-whitelist.txt @@ -256,6 +256,7 @@ src/minimap.cpp src/minimap.h src/mods.cpp src/mods.h +src/network/address.cpp src/network/clientopcodes.cpp src/network/clientopcodes.h src/network/clientpackethandler.cpp |