From: Roy Marples Date: Sat, 3 Aug 2019 07:48:29 +0000 (+0100) Subject: Cast away an alignment error. X-Git-Tag: v8.0.3~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8059d909d8245c7ce243e975278cace87754b422;p=thirdparty%2Fdhcpcd.git Cast away an alignment error. --- diff --git a/src/dhcp.c b/src/dhcp.c index 5965b9a9..d2cd3768 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -3279,7 +3279,7 @@ valid_udp_packet(void *packet, size_t plen, struct in_addr *from, /* UDP checksum is based on a pseudo IP header alongside * the UDP header and payload. */ - udp = (struct udphdr *)((char *)ip + ip_hlen); + udp = (struct udphdr *)(void *)((char *)ip + ip_hlen); if (udp->uh_sum == 0) return 0;