forked from mirror/qmk_firmware
Fix void pointer arithmetic in the low level RNDIS demo.
This commit is contained in:
@@ -244,7 +244,7 @@ void DecodeUDPHeader(void* InDataStart)
|
|||||||
void DecodeDHCPHeader(void* InDataStart)
|
void DecodeDHCPHeader(void* InDataStart)
|
||||||
{
|
{
|
||||||
#if !defined(NO_DECODE_DHCP)
|
#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"));
|
printf_P(PSTR(" \\\r\n DHCP\r\n"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user