From: Dean Camera Date: Tue, 22 Dec 2015 11:32:24 +0000 (+1100) Subject: Fix void pointer arithmetic in the low level RNDIS demo. X-Git-Tag: LUFA-170418~29 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/dfdf4de8fa798a5d66267a1d11107cbe8f76bcc8?ds=sidebyside;hp=-c Fix void pointer arithmetic in the low level RNDIS demo. --- dfdf4de8fa798a5d66267a1d11107cbe8f76bcc8 diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c b/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c index cc4e96132..e1d41ebde 100644 --- a/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c +++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c @@ -244,7 +244,7 @@ void DecodeUDPHeader(void* InDataStart) void DecodeDHCPHeader(void* InDataStart) { #if !defined(NO_DECODE_DHCP) - uint8_t* DHCPOptions = (InDataStart + sizeof(DHCP_Header_t)); + uint8_t* DHCPOptions = ((uint8_t*)InDataStart + sizeof(DHCP_Header_t)); printf_P(PSTR(" \\\r\n DHCP\r\n"));