From ddc3fe74815a8c5aaadb8f0ccd53545fd2609bcd Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 2 Aug 2024 15:27:24 +0300 Subject: [PATCH] ip2net: use restrict pointers in ip6_and --- ip2net/ip2net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip2net/ip2net.c b/ip2net/ip2net.c index 9e936e8..41011b2 100644 --- a/ip2net/ip2net.c +++ b/ip2net/ip2net.c @@ -178,7 +178,7 @@ static void ip6_and(const struct in6_addr *a, const struct in6_addr *b, struct i #if defined(__GNUC__) && !defined(__llvm__) __attribute__((optimize ("no-strict-aliasing"))) #endif -static void ip6_and(const struct in6_addr *a, const struct in6_addr *b, struct in6_addr *result) +static void ip6_and(const struct in6_addr * restrict a, const struct in6_addr * restrict b, struct in6_addr * restrict result) { #ifdef __SIZEOF_INT128__ // gcc and clang have 128 bit int types on some 64-bit archs. take some advantage