diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-04-18 13:18:15 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-04-18 13:18:15 +0000 |
| commit | f0b1462f922c3af4af870d5e8e0c7502b94bc7fb (patch) | |
| tree | d3e6a1dcded8b844071c35a7fddd168aae1d3231 /src/headers/ip46-with | |
| parent | b8afece8d141369c25027b73680deccf48ddb948 (diff) | |
| download | skalibs-f0b1462f922c3af4af870d5e8e0c7502b94bc7fb.tar.gz | |
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.
Diffstat (limited to 'src/headers/ip46-with')
| -rw-r--r-- | src/headers/ip46-with | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |
