Fix additional void pointer arithmetic in the class driver RNDIS demo.
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 22 Dec 2015 11:36:23 +0000 (22:36 +1100)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 22 Dec 2015 11:36:23 +0000 (22:36 +1100)
Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.c
LUFA/DoxygenPages/ChangeLog.txt

index 57e71cb..c9db1f0 100644 (file)
@@ -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"));
 
index 36c5bf9..16102fb 100644 (file)
@@ -15,7 +15,7 @@
   *     in a user application (thanks to Matlo)
   *   - Fixed missing \c va_end() calls in the HID bootloader CLI app which could cause portability issues
   *   - Fixed void pointer arithmetic in the \c Serial_SendData() functions for AVR8 and XMEGA architectures
   *     in a user application (thanks to Matlo)
   *   - Fixed missing \c va_end() calls in the HID bootloader CLI app which could cause portability issues
   *   - Fixed void pointer arithmetic in the \c Serial_SendData() functions for AVR8 and XMEGA architectures
-  *   - Fixed void pointer arithmetic in the low level RNDIS demo protocol decoders
+  *   - Fixed void pointer arithmetic in the low level and class driver RNDIS demo protocol decoders
   *   - Fixed low level RNDIS demo incorrectly setting the RNDIS state when a null packet filter was requested
   *
   *  \section Sec_ChangeLog151115 Version 151115
   *   - Fixed low level RNDIS demo incorrectly setting the RNDIS state when a null packet filter was requested
   *
   *  \section Sec_ChangeLog151115 Version 151115