From a668a4e4d1fdeabac45fabb7ed7233cffbc22e10 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 9 Feb 2010 17:41:34 +0000 Subject: [PATCH] Fixed compilation for NO_SYS==1 --- src/core/netif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/netif.c b/src/core/netif.c index ce5d7f3b..e37ef4cd 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -583,7 +583,6 @@ netif_loop_output(struct netif *netif, struct pbuf *p, #if LWIP_LOOPBACK_MAX_PBUFS u8_t clen = 0; #endif /* LWIP_LOOPBACK_MAX_PBUFS */ - SYS_ARCH_DECL_PROTECT(lev); /* If we have a loopif, SNMP counters are adjusted for it, * if not they are adjusted for 'netif'. */ #if LWIP_HAVE_LOOPIF @@ -591,6 +590,7 @@ netif_loop_output(struct netif *netif, struct pbuf *p, #else /* LWIP_HAVE_LOOPIF */ struct netif *stats_if = netif; #endif /* LWIP_HAVE_LOOPIF */ + SYS_ARCH_DECL_PROTECT(lev); LWIP_UNUSED_ARG(ipaddr); /* Allocate a new pbuf */