]> granicus.if.org Git - esp-idf/commitdiff
dhcpserver: Move list_node to implementation not public interface
authorAngus Gratton <angus@espressif.com>
Tue, 5 Sep 2017 07:11:11 +0000 (17:11 +1000)
committerAngus Gratton <gus@projectgus.com>
Tue, 5 Sep 2017 07:14:23 +0000 (17:14 +1000)
Was unused in the public interface.

Closes https://github.com/espressif/esp-idf/issues/948

components/lwip/apps/dhcpserver.c
components/lwip/include/lwip/apps/dhcpserver.h

index 44ddd33681285378db0180bb96d950a3a95e8cd0..685219c6258786787648586e9966a050655824fd 100644 (file)
 #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;
index 9e361833d3de0dda5c73d67006f5eae8be2b7967..77d018cefc3163f417735e0380b77745a77bdf9d 100644 (file)
@@ -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;