dhcpserver: Move list_node to implementation not public interface

Was unused in the public interface.

Closes https://github.com/espressif/esp-idf/issues/948
This commit is contained in:
Angus Gratton 2017-09-05 17:11:11 +10:00 committed by Angus Gratton
parent 11a87ca811
commit 1be6bf6790
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View 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;