projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix void pointer arithmetic in the low level RNDIS demo.
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
RNDISEthernet
/
Lib
/
ProtocolDecoders.c
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c
b/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c
index
cc4e961
..
e1d41eb
100644
(file)
--- 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)
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"));
printf_P(PSTR(" \\\r\n DHCP\r\n"));