Skip to content

Commit

Permalink
squelch warnings from sid
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Jul 30, 2022
1 parent a434efa commit de1b293
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion llarp/net/sock_addr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ namespace llarp
{
return memcmp(&lh, &rh, sizeof(in6_addr)) == 0;
}

bool
operator<(const in6_addr& lh, const in6_addr& rh)
{
return memcmp(&lh, &rh, sizeof(in6_addr)) < 0;
}
/// shared utility functions
///

Expand Down Expand Up @@ -209,7 +215,8 @@ namespace llarp
bool
SockAddr::operator<(const SockAddr& other) const
{
return (m_addr.sin6_addr.s6_addr < other.m_addr.sin6_addr.s6_addr);
return (m_addr.sin6_addr < other.m_addr.sin6_addr)
or (m_addr.sin6_port < other.m_addr.sin6_port);
}

bool
Expand Down

0 comments on commit de1b293

Please sign in to comment.