From: Roy Marples Date: Fri, 17 May 2013 23:24:07 +0000 (+0000) Subject: Fix an alignment error X-Git-Tag: v5.99.7~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9be80cbed37a526919db0fcd76bd720e183e3d19;p=thirdparty%2Fdhcpcd.git Fix an alignment error --- diff --git a/net.c b/net.c index f6e6e846..cbc71773 100644 --- 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,