From 1be6bf67903ed79124fc1ef41a71104e529f3287 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 5 Sep 2017 17:11:11 +1000 Subject: [PATCH] dhcpserver: Move list_node to implementation not public interface Was unused in the public interface. Closes https://github.com/espressif/esp-idf/issues/948 --- components/lwip/apps/dhcpserver.c | 7 ++++++- components/lwip/include/lwip/apps/dhcpserver.h | 5 ----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/lwip/apps/dhcpserver.c b/components/lwip/apps/dhcpserver.c index 44ddd3368..685219c62 100644 --- a/components/lwip/apps/dhcpserver.c +++ b/components/lwip/apps/dhcpserver.c @@ -71,6 +71,11 @@ #define DHCPS_STATE_IDLE 5 #define DHCPS_STATE_RELEASE 6 +typedef struct _list_node { + void *pnode; + struct _list_node *pnext; +} list_node; + //////////////////////////////////////////////////////////////////////////////////// static const u32_t magic_cookie = 0x63538263; @@ -135,7 +140,7 @@ void *dhcps_option_info(u8_t op_id, u32_t opt_len) * pinsert -- the insert node of the list * Returns : none *******************************************************************************/ -void node_insert_to_list(list_node **phead, list_node *pinsert) +static void node_insert_to_list(list_node **phead, list_node *pinsert) { list_node *plist = NULL; struct dhcps_pool *pdhcps_pool = NULL; diff --git a/components/lwip/include/lwip/apps/dhcpserver.h b/components/lwip/include/lwip/apps/dhcpserver.h index 9e361833d..77d018cef 100644 --- a/components/lwip/include/lwip/apps/dhcpserver.h +++ b/components/lwip/include/lwip/apps/dhcpserver.h @@ -176,11 +176,6 @@ struct dhcps_pool{ u32_t lease_timer; }; -typedef struct _list_node{ - void *pnode; - struct _list_node *pnext; -}list_node; - typedef u32_t dhcps_time_t; typedef u8_t dhcps_offer_t;