Format source code

It appears we have failed to run `make format` in the last few
commits. Doing it now. We should really add it to CI
This commit is contained in:
Arnout Engelen
2023-01-09 12:39:07 +01:00
parent 80df0044ec
commit d30c5226a0
8 changed files with 31 additions and 31 deletions

View File

@@ -300,9 +300,8 @@ bool Packet::match(const Packet *other) const {
bool Packet::matchSource(const Packet *other) const {
return sa_family == other->sa_family && (sport == other->sport) &&
(sa_family == AF_INET
? (sameinaddr(sip, other->sip))
: (samein6addr(sip6, other->sip6)));
(sa_family == AF_INET ? (sameinaddr(sip, other->sip))
: (samein6addr(sip6, other->sip6)));
}
Packet Packet::onlySource() const {
@@ -313,7 +312,7 @@ Packet Packet::onlySource() const {
return p;
}
bool Packet::operator< (const Packet& other) const {
bool Packet::operator<(const Packet &other) const {
if (sa_family != other.sa_family)
return dir < other.sa_family;
/* source address first */