]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix an alignment error
authorRoy Marples <roy@marples.name>
Fri, 17 May 2013 23:24:07 +0000 (23:24 +0000)
committerRoy Marples <roy@marples.name>
Fri, 17 May 2013 23:24:07 +0000 (23:24 +0000)
net.c

diff --git a/net.c b/net.c
index f6e6e8468442d6767acc42200e7cb8d4bda7c2cd..cbc7177337c29735684c3d424d87c3cdf5d25899 100644 (file)
--- a/net.c
+++ b/net.c
@@ -434,7 +434,8 @@ discover_interfaces(int argc, char * const *argv)
                if (ifa->ifa_addr != NULL &&
                    ifa->ifa_addr->sa_family == AF_INET6)
                {
-                       sin6 = (const struct sockaddr_in6 *)ifa->ifa_addr;
+                       sin6 = (const struct sockaddr_in6 *)
+                           (void *)ifa->ifa_addr;
                        if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))
                                /* XXX: Check tentative, etc? */
                                ipv6_handleifa(RTM_NEWADDR, ifs, ifa->ifa_name,