Fix void pointer arithmetic in the low level RNDIS demo.
This commit is contained in:
1 parent
0b69eeaf5d
commit
dfdf4de8fa
1 file changed
+1
-1
@@ -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"));
|
||||
|
||||
|
||||
Reference in new issue
Block a user