mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Fixed compilation for NO_SYS==1
This commit is contained in:
parent
b1250f003d
commit
a668a4e4d1
@ -583,7 +583,6 @@ netif_loop_output(struct netif *netif, struct pbuf *p,
|
|||||||
#if LWIP_LOOPBACK_MAX_PBUFS
|
#if LWIP_LOOPBACK_MAX_PBUFS
|
||||||
u8_t clen = 0;
|
u8_t clen = 0;
|
||||||
#endif /* LWIP_LOOPBACK_MAX_PBUFS */
|
#endif /* LWIP_LOOPBACK_MAX_PBUFS */
|
||||||
SYS_ARCH_DECL_PROTECT(lev);
|
|
||||||
/* If we have a loopif, SNMP counters are adjusted for it,
|
/* If we have a loopif, SNMP counters are adjusted for it,
|
||||||
* if not they are adjusted for 'netif'. */
|
* if not they are adjusted for 'netif'. */
|
||||||
#if LWIP_HAVE_LOOPIF
|
#if LWIP_HAVE_LOOPIF
|
||||||
@ -591,6 +590,7 @@ netif_loop_output(struct netif *netif, struct pbuf *p,
|
|||||||
#else /* LWIP_HAVE_LOOPIF */
|
#else /* LWIP_HAVE_LOOPIF */
|
||||||
struct netif *stats_if = netif;
|
struct netif *stats_if = netif;
|
||||||
#endif /* LWIP_HAVE_LOOPIF */
|
#endif /* LWIP_HAVE_LOOPIF */
|
||||||
|
SYS_ARCH_DECL_PROTECT(lev);
|
||||||
LWIP_UNUSED_ARG(ipaddr);
|
LWIP_UNUSED_ARG(ipaddr);
|
||||||
|
|
||||||
/* Allocate a new pbuf */
|
/* Allocate a new pbuf */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user