Skip to content

Commit

Permalink
utils/net: suppress alignment warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Dec 4, 2024
1 parent 4462a15 commit b99c8c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,11 @@ sockaddr_compare(const struct sockaddr *x, const struct sockaddr *y)
{
struct sockaddr_in tmp1;
if (x->sa_family == AF_INET6) {
x = v4_unmap((const struct sockaddr_in6 *) x, &tmp1);
x = v4_unmap((const void *) x, &tmp1);
}
struct sockaddr_in tmp2;
if (y->sa_family == AF_INET6) {
y = v4_unmap((const struct sockaddr_in6 *) y, &tmp2);
y = v4_unmap((const void *) y, &tmp2);
}

if (x->sa_family != y->sa_family) {
Expand Down

0 comments on commit b99c8c1

Please sign in to comment.