summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/rthdr.c
diff options
context:
space:
mode:
authorguenther <>2016-09-21 04:38:56 +0000
committerguenther <>2016-09-21 04:38:56 +0000
commit9c39f482053578cd14ef5b179253da998be17454 (patch)
tree3bb42615ccded37cb263d99efa2577aacafc250f /src/lib/libc/net/rthdr.c
parent6d139a2f685581fa5f221bba4bc860f16b4af925 (diff)
downloadopenbsd-9c39f482053578cd14ef5b179253da998be17454.tar.gz
openbsd-9c39f482053578cd14ef5b179253da998be17454.tar.bz2
openbsd-9c39f482053578cd14ef5b179253da998be17454.zip
Delete casts to off_t and size_t that are implied by assignments
or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
Diffstat (limited to 'src/lib/libc/net/rthdr.c')
-rw-r--r--src/lib/libc/net/rthdr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/net/rthdr.c b/src/lib/libc/net/rthdr.c
index 1a29e87de1..934a55155a 100644
--- a/src/lib/libc/net/rthdr.c
+++ b/src/lib/libc/net/rthdr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rthdr.c,v 1.11 2015/09/14 11:01:47 guenther Exp $ */ 1/* $OpenBSD: rthdr.c,v 1.12 2016/09/21 04:38:56 guenther Exp $ */
2/* $KAME: rthdr.c,v 1.22 2006/02/09 08:18:58 keiichi Exp $ */ 2/* $KAME: rthdr.c,v 1.22 2006/02/09 08:18:58 keiichi Exp $ */
3 3
4/* 4/*
@@ -120,8 +120,7 @@ inet6_rth_reverse(const void *in, void *out)
120 segments = rth0_in->ip6r0_len / 2; 120 segments = rth0_in->ip6r0_len / 2;
121 121
122 /* we can't use memcpy here, since in and out may overlap */ 122 /* we can't use memcpy here, since in and out may overlap */
123 memmove((void *)rth0_out, (void *)rth0_in, 123 memmove(rth0_out, rth0_in, ((rth0_in->ip6r0_len) + 1) << 3);
124 ((rth0_in->ip6r0_len) + 1) << 3);
125 rth0_out->ip6r0_segleft = segments; 124 rth0_out->ip6r0_segleft = segments;
126 125
127 /* reverse the addresses */ 126 /* reverse the addresses */