From b99c8c1300d92c4dce1177a93211b3e38a2fd894 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 3 Dec 2024 11:07:41 +0100 Subject: [PATCH] utils/net: suppress alignment warning --- src/utils/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/net.c b/src/utils/net.c index 7215c486b..ae079aa1e 100644 --- a/src/utils/net.c +++ b/src/utils/net.c @@ -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) {