Minor whitespace cleanups

This commit is contained in:
goldsimon 2017-07-25 21:48:17 +02:00
parent 9b06d71aeb
commit a2e4dd2de7

View File

@ -22,7 +22,7 @@
* to remove the DHCP client. * to remove the DHCP client.
* *
* @see LWIP_HOOK_DHCP_APPEND_OPTIONS * @see LWIP_HOOK_DHCP_APPEND_OPTIONS
* @see LWIP_HOOK_DHCP_PARSE_OPTION * @see LWIP_HOOK_DHCP_PARSE_OPTION
* *
* @see netifapi_dhcp4 * @see netifapi_dhcp4
*/ */
@ -1881,7 +1881,7 @@ dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type)
/* set ciaddr to netif->ip_addr based on message_type and state */ /* set ciaddr to netif->ip_addr based on message_type and state */
if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) || if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) ||
((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */ ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
((dhcp->state== DHCP_STATE_RENEWING) || dhcp->state== DHCP_STATE_REBINDING))) { ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
ip4_addr_copy(dhcp->msg_out->ciaddr, *netif_ip4_addr(netif)); ip4_addr_copy(dhcp->msg_out->ciaddr, *netif_ip4_addr(netif));
} }
ip4_addr_set_zero(&dhcp->msg_out->yiaddr); ip4_addr_set_zero(&dhcp->msg_out->yiaddr);