summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-05-10 23:09:56 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-05-10 23:09:56 +0000
commit574625d7b5c9e9a1a3b9dcdc92d395f391802d26 (patch)
treee8083fa13faf449440ef8a221e82067ad681707c /src
parent524bdb6d1ee59cd77716e41ec16a644b2b2712c7 (diff)
downloadskalibs-574625d7b5c9e9a1a3b9dcdc92d395f391802d26.tar.xz
Remove byte_copy invocation from ip46-without
Diffstat (limited to 'src')
-rw-r--r--src/headers/ip46-without2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/headers/ip46-without b/src/headers/ip46-without
index 7887482..c06106b 100644
--- a/src/headers/ip46-without
+++ b/src/headers/ip46-without
@@ -11,7 +11,7 @@ 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) (byte_copy((i)->ip, 4, ip4), 1)
+#define ip46_from_ip4(i, ip4) (memmove((i)->ip, (ip4), 4), 1)
#define ip46_from_ip6(i, ip6) (errno = ENOSYS, 0)
#define socket_connect46(s, i, port) socket_connect4(s, (i)->ip, port)