mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-21 00:39:58 +00:00
avoid compiler warning
This commit is contained in:
parent
32d9f25a6f
commit
9cafc7a764
@ -646,9 +646,8 @@ struct pbuf *etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pb
|
||||
u8_t i;
|
||||
|
||||
srcaddr = (struct eth_addr *)netif->hwaddr;
|
||||
i = 0;
|
||||
/* bail out if this IP address is pending */
|
||||
for(i; i < ARP_TABLE_SIZE; ++i) {
|
||||
for(i = 0; i < ARP_TABLE_SIZE; ++i) {
|
||||
if(ip_addr_cmp(ipaddr, &arp_table[i].ipaddr)) {
|
||||
if (arp_table[i].state == ETHARP_STATE_PENDING) {
|
||||
DEBUGF(ETHARP_DEBUG, ("etharp_query: requested IP already pending\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user