]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove some caddr_t usage.
authorRoy Marples <roy@marples.name>
Thu, 18 Sep 2014 08:42:41 +0000 (08:42 +0000)
committerRoy Marples <roy@marples.name>
Thu, 18 Sep 2014 08:42:41 +0000 (08:42 +0000)
dhcp6.c
ipv6nd.c

diff --git a/dhcp6.c b/dhcp6.c
index 1a6c03670157cd4d04fb8bde5ad4d070a10eacc4..fa636e9e34bc435f63884a7f5108cb44b9b9999b 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -1053,8 +1053,8 @@ logsend:
 
        ctx = ifp->ctx->ipv6;
        dst.sin6_scope_id = ifp->index;
-       ctx->sndhdr.msg_name = (caddr_t)&dst;
-       ctx->sndhdr.msg_iov[0].iov_base = (caddr_t)state->send;
+       ctx->sndhdr.msg_name = (void *)&dst;
+       ctx->sndhdr.msg_iov[0].iov_base = state->send;
        ctx->sndhdr.msg_iov[0].iov_len = state->send_len;
 
        /* Set the outbound interface */
index d62f16158ab072dbfd9a1b5f22d25509680e2e9e..801958f987e0c7e14dd0795ec59be75314ab742f 100644 (file)
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -287,7 +287,7 @@ ipv6nd_sendrsprobe(void *arg)
 
        state = RS_STATE(ifp);
        ctx = ifp->ctx->ipv6;
-       ctx->sndhdr.msg_name = (caddr_t)&dst;
+       ctx->sndhdr.msg_name = (void *)&dst;
        ctx->sndhdr.msg_iov[0].iov_base = state->rs;
        ctx->sndhdr.msg_iov[0].iov_len = state->rslen;