From 771fb0f2cd866c8d2bd4cfb042b51d44ba6ef6b9 Mon Sep 17 00:00:00 2001 From: kieranm Date: Wed, 18 Dec 2002 11:53:26 +0000 Subject: [PATCH] Removed "static" from declaration of netif in ip_forward and ip_output (Bug #1909) --- src/core/ipv4/ip.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/ipv4/ip.c b/src/core/ipv4/ip.c index 30c85026..01b01e3b 100644 --- a/src/core/ipv4/ip.c +++ b/src/core/ipv4/ip.c @@ -158,7 +158,7 @@ ip_route(struct ip_addr *dest) static void ip_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) { - static struct netif *netif; + struct netif *netif; PERF_START; @@ -539,8 +539,7 @@ err_t ip_output(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t ttl, u8_t proto) { - static struct netif *netif; - + struct netif *netif; if((netif = ip_route(dest)) == NULL) { DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr));