aboutsummaryrefslogtreecommitdiffstats
path: root/Demos
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2018-12-09 13:24:51 +1100
committerDean Camera <dean@fourwalledcubicle.com>2018-12-09 13:30:16 +1100
commitb3010839385f81c0f62c379aa3bb62862c26ddbb (patch)
treed8514a5316fdbc4b371c64bfe1660fa33d85007f /Demos
parent4fc5650d99b2e3131aea06f357fa647d24c6e166 (diff)
downloadlufa-b3010839385f81c0f62c379aa3bb62862c26ddbb.tar.gz
lufa-b3010839385f81c0f62c379aa3bb62862c26ddbb.tar.bz2
lufa-b3010839385f81c0f62c379aa3bb62862c26ddbb.zip
Fix static analysis warnings.
Diffstat (limited to 'Demos')
-rw-r--r--Demos/Device/LowLevel/RNDISEthernet/Lib/DHCP.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/DHCP.c b/Demos/Device/LowLevel/RNDISEthernet/Lib/DHCP.c
index 44849fbff..6fcab3b7d 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/Lib/DHCP.c
+++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/DHCP.c
@@ -54,8 +54,8 @@ int16_t DHCP_ProcessDHCPPacket(void* IPHeaderInStart,
DHCP_Header_t* DHCPHeaderIN = (DHCP_Header_t*)DHCPHeaderInStart;
DHCP_Header_t* DHCPHeaderOUT = (DHCP_Header_t*)DHCPHeaderOutStart;
- uint8_t* DHCPOptionsINStart = (uint8_t*)(DHCPHeaderInStart + sizeof(DHCP_Header_t));
- uint8_t* DHCPOptionsOUTStart = (uint8_t*)(DHCPHeaderOutStart + sizeof(DHCP_Header_t));
+ uint8_t* DHCPOptionsINStart = ((uint8_t*)DHCPHeaderInStart + sizeof(DHCP_Header_t));
+ uint8_t* DHCPOptionsOUTStart = ((uint8_t*)DHCPHeaderOutStart + sizeof(DHCP_Header_t));
DecodeDHCPHeader(DHCPHeaderInStart);