avoid compiler warning

This commit is contained in:
jani 2003-03-21 10:34:47 +00:00
parent 32d9f25a6f
commit 9cafc7a764

View File

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