Skip to content
Prev Previous commit
Next Next commit
lwipDhcpServer: delete unused variables
  • Loading branch information
pennam committed Feb 21, 2025
commit ee4551305c841b0ace0f5225b2c5934638daa8cf
11 changes: 0 additions & 11 deletions libraries/lwIpWrapper/src/lwipDhcpServer.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,6 @@ static struct netif *dhcps_netif = NULL;
static struct udp_pcb *dhcps_pcb;
static DHCP_Address dhcp_address;


static uint8_t xid[4];


//static list_node *plist = NULL;
static bool renew = false;

static dhcps_lease_t dhcps_poll;
static dhcps_time_t dhcps_lease_time = DHCPS_LEASE_TIME_DEF; //minute
static dhcps_offer_t dhcps_offer = 0xFF;
Expand Down Expand Up @@ -350,9 +343,7 @@ static void send_offer(struct dhcps_msg *msg, uint16_t len)
struct pbuf *p, *q;
uint8_t *data;
uint16_t cnt = 0;
uint8_t CopyFinished=0;
uint16_t i;
uint32_t endptr , dataptr = NULL;
#if DHCPS_DEBUG
err_t SendOffer_err_t;
#endif
Expand Down Expand Up @@ -666,8 +657,6 @@ static void handle_dhcp(void *arg,
{
struct dhcps_msg *pmsg_dhcps = NULL;
int16_t tlen, malloc_len;
uint16_t i;
uint16_t dhcps_msg_cnt = 0;
uint8_t *p_dhcps_msg = NULL;
struct pbuf *q;

Expand Down