From 7571fe5d13650b858650092ee80710e38ec97c50 Mon Sep 17 00:00:00 2001 From: christiaans Date: Thu, 15 Dec 2005 08:27:30 +0000 Subject: [PATCH] Fixed unused variable warning. --- src/netif/etharp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 4ead288d..7765046d 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -689,7 +689,6 @@ etharp_output(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q) */ err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q) { - struct pbuf *p; struct eth_addr * srcaddr = (struct eth_addr *)netif->hwaddr; err_t result = ERR_MEM; s8_t i; /* ARP entry index */ @@ -748,6 +747,7 @@ err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q) /* pending entry? (either just created or already pending */ } else if (arp_table[i].state == ETHARP_STATE_PENDING) { #if ARP_QUEUEING /* queue the given q packet */ + struct pbuf *p; /* copy any PBUF_REF referenced payloads into PBUF_RAM */ /* (the caller of lwIP assumes the referenced payload can be * freed after it returns from the lwIP call that brought us here) */