From f0b1462f922c3af4af870d5e8e0c7502b94bc7fb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 18 Apr 2026 13:18:15 +0000 Subject: Make ip46_from_ip? macros not force an int return The int return was useless and caused warnings. Since we're major bumping, use the opportunity to fix that. --- src/headers/ip46-with | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/headers/ip46-with') diff --git a/src/headers/ip46-with b/src/headers/ip46-with index f6e0ed1..024ee54 100644 --- a/src/headers/ip46-with +++ b/src/headers/ip46-with @@ -7,8 +7,8 @@ typedef ip46full ip46, *ip46_ref ; #define ip46_fmt(s, i) ip46full_fmt(s, i) #define ip46_scan(s, i) ip46full_scan(s, i) #define ip46_scanlist(out, max, s, num) ip46full_scanlist(out, max, s, num) -#define ip46_from_ip4(i, ip4) (ip46full_from_ip4(i, ip4), 1) -#define ip46_from_ip6(i, ip6) (ip46full_from_ip6(i, ip6), 1) +#define ip46_from_ip4(i, ip4) ip46full_from_ip4(i, ip4) +#define ip46_from_ip6(i, ip6) ip46full_from_ip6(i, ip6) #define socket_connect46(s, i, port) ((i)->is6 ? socket_connect6(s, (i)->ip, port) : socket_connect4(s, (i)->ip, port)) #define socket_bind46(s, i, port) ((i)->is6 ? socket_bind6(s, (i)->ip, port) : socket_bind4(s, (i)->ip, port)) -- cgit v1.3.1