From 9106a1f2d509e738132dd6fa38e4795db590cbfb Mon Sep 17 00:00:00 2001 From: likewise Date: Fri, 16 Apr 2004 22:34:25 +0000 Subject: [PATCH] Fixed #ifdef LWIP_DHCP position. Fixed extranous comma in function arguments. --- src/core/dhcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/dhcp.c b/src/core/dhcp.c index 3228a202..f8cb20c0 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -67,8 +67,6 @@ * to remove the DHCP client. * */ -#ifdef LWIP_DHCP /* don't build if not configured for use in lwipopt.h */ - #include "lwip/stats.h" #include "lwip/mem.h" #include "lwip/udp.h" @@ -81,6 +79,8 @@ #include "lwip/opt.h" #include "lwip/dhcp.h" +#ifdef LWIP_DHCP /* don't build if not configured for use in lwipopt.h */ + /** global transaction identifier, must be * unique for each DHCP request. */ static u32_t xid = 0xABCD0000; @@ -710,7 +710,7 @@ static err_t dhcp_discover(struct netif *netif) udp_bind(dhcp->pcb, IP_ADDR_ANY, DHCP_CLIENT_PORT); udp_connect(dhcp->pcb, IP_ADDR_ANY, DHCP_SERVER_PORT); LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE, ("dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, DHCP_SERVER_PORT)\n")); - udp_sendto(dhcp->pcb, dhcp->p_out, IP_ADDR_BROADCAST, , DHCP_SERVER_PORT); + udp_sendto(dhcp->pcb, dhcp->p_out, IP_ADDR_BROADCAST, DHCP_SERVER_PORT); LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE, ("dhcp_discover: deleting()ing\n")); dhcp_delete_request(netif); LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE | DBG_STATE, ("dhcp_discover: SELECTING\n"));