aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Webserver/Lib/DHCPApp.c
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/Webserver/Lib/DHCPApp.c')
-rw-r--r--Projects/Webserver/Lib/DHCPApp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Projects/Webserver/Lib/DHCPApp.c b/Projects/Webserver/Lib/DHCPApp.c
index a687586ad..2aad7a65b 100644
--- a/Projects/Webserver/Lib/DHCPApp.c
+++ b/Projects/Webserver/Lib/DHCPApp.c
@@ -75,7 +75,7 @@ void DHCPApp_Callback(void)
case DHCP_STATE_SendDiscover:
/* Clear all DHCP settings, reset client IP address */
memset(&AppState->DHCPOffer_Data, 0x00, sizeof(AppState->DHCPOffer_Data));
- uip_sethostaddr(&AppState->DHCPOffer_Data.AllocatedIP);
+ uip_sethostaddr((uip_ipaddr_t*)&AppState->DHCPOffer_Data.AllocatedIP);
/* Fill out the DHCP response header */
AppDataSize += DHCPApp_FillDHCPHeader(AppData, DHCP_DISCOVER, AppState);
@@ -155,9 +155,9 @@ void DHCPApp_Callback(void)
(RequestResponse_MessageType == DHCP_ACK))
{
/* Set the new network parameters from the DHCP server */
- uip_sethostaddr(&AppState->DHCPOffer_Data.AllocatedIP);
- uip_setnetmask(&AppState->DHCPOffer_Data.Netmask);
- uip_setdraddr(&AppState->DHCPOffer_Data.GatewayIP);
+ uip_sethostaddr((uip_ipaddr_t*)&AppState->DHCPOffer_Data.AllocatedIP);
+ uip_setnetmask((uip_ipaddr_t*)&AppState->DHCPOffer_Data.Netmask);
+ uip_setdraddr((uip_ipaddr_t*)&AppState->DHCPOffer_Data.GatewayIP);
AppState->CurrentState = DHCP_STATE_AddressLeased;
}