aboutsummaryrefslogtreecommitdiffstats
path: root/src/headers/ip46-without
diff options
context:
space:
mode:
Diffstat (limited to 'src/headers/ip46-without')
-rw-r--r--src/headers/ip46-without4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/headers/ip46-without b/src/headers/ip46-without
index 58fe022..0f1c35e 100644
--- a/src/headers/ip46-without
+++ b/src/headers/ip46-without
@@ -11,8 +11,8 @@ struct ip46_s
#define ip46_fmt(s, i) ip4_fmt(s, (i)->ip)
#define ip46_scan(s, i) ip4_scan(s, (i)->ip)
#define ip46_scanlist(out, max, s, num) ip4_scanlist((out)->ip, max, s, num)
-#define ip46_from_ip4(i, ip4) (memmove((i)->ip, (ip4), 4), 1)
-#define ip46_from_ip6(i, ip6) (errno = ENOSYS, 0)
+#define ip46_from_ip4(i, ip4) memmove((i)->ip, (ip4), 4)
+#define ip46_from_ip6(i, ip6) (errno = ENOSYS)
#define socket_connect46(s, i, port) socket_connect4(s, (i)->ip, port)
#define socket_bind46(s, i, port) socket_bind4(s, (i)->ip, port)