mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
changes tabs to spaces
This commit is contained in:
parent
5c89228878
commit
c01e265e07
@ -63,7 +63,7 @@ loopif_poll(struct netif *netif)
|
|||||||
|
|
||||||
LWIP_ASSERT("priv != NULL", priv != NULL);
|
LWIP_ASSERT("priv != NULL", priv != NULL);
|
||||||
if(priv == NULL) {
|
if(priv == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
@ -88,8 +88,8 @@ loopif_poll(struct netif *netif)
|
|||||||
LWIP_ASSERT("packet must not consist of multiple pbufs!", in->len == in->tot_len);
|
LWIP_ASSERT("packet must not consist of multiple pbufs!", in->len == in->tot_len);
|
||||||
}
|
}
|
||||||
if(netif->input(in, netif) != ERR_OK) {
|
if(netif->input(in, netif) != ERR_OK) {
|
||||||
pbuf_free(in);
|
pbuf_free(in);
|
||||||
in = NULL;
|
in = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* go on while there is a packet on the list */
|
/* go on while there is a packet on the list */
|
||||||
@ -131,8 +131,8 @@ loopif_output(struct netif *netif, struct pbuf *p,
|
|||||||
into a mailbox, so we can safely call it here without risking to re-enter
|
into a mailbox, so we can safely call it here without risking to re-enter
|
||||||
functions that are not reentrant (TCP!!!) */
|
functions that are not reentrant (TCP!!!) */
|
||||||
if(netif->input(r, netif) != ERR_OK) {
|
if(netif->input(r, netif) != ERR_OK) {
|
||||||
pbuf_free(r);
|
pbuf_free(r);
|
||||||
r = NULL;
|
r = NULL;
|
||||||
}
|
}
|
||||||
#else /* LWIP_LOOPIF_MULTITHREADING */
|
#else /* LWIP_LOOPIF_MULTITHREADING */
|
||||||
/* Raw API without threads: put the packet on a linked list which gets emptied
|
/* Raw API without threads: put the packet on a linked list which gets emptied
|
||||||
|
@ -183,7 +183,7 @@ slipif_loop(void *nf)
|
|||||||
while (1) {
|
while (1) {
|
||||||
p = slipif_input(netif);
|
p = slipif_input(netif);
|
||||||
if(netif->input(p, netif) != ERR_OK) {
|
if(netif->input(p, netif) != ERR_OK) {
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
p = NULL;
|
p = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user