Fix build w/o logging

PUBLISHED_FROM=694346bd6562c55e5ab00886df47f7cbfb0a3720
This commit is contained in:
Deomid Ryabkov 2018-09-25 14:07:32 +03:00 committed by Cesanta Bot
parent 41e5d7e471
commit b99a94a652
2 changed files with 4 additions and 0 deletions

View File

@ -15182,6 +15182,7 @@ static err_t mg_lwip_tcp_recv_cb(void *arg, struct tcp_pcb *tpcb,
}
mg_lwip_recv_common(nc, p);
mgos_unlock();
(void) err;
return ERR_OK;
}
@ -15194,6 +15195,7 @@ static err_t mg_lwip_tcp_sent_cb(void *arg, struct tcp_pcb *tpcb,
nc->send_mbuf.len == 0 && tpcb->unsent == NULL && tpcb->unacked == NULL) {
mg_lwip_post_signal(MG_SIG_CLOSE_CONN, nc);
}
(void) num_sent;
return ERR_OK;
}

View File

@ -187,6 +187,7 @@ static err_t mg_lwip_tcp_recv_cb(void *arg, struct tcp_pcb *tpcb,
}
mg_lwip_recv_common(nc, p);
mgos_unlock();
(void) err;
return ERR_OK;
}
@ -199,6 +200,7 @@ static err_t mg_lwip_tcp_sent_cb(void *arg, struct tcp_pcb *tpcb,
nc->send_mbuf.len == 0 && tpcb->unsent == NULL && tpcb->unacked == NULL) {
mg_lwip_post_signal(MG_SIG_CLOSE_CONN, nc);
}
(void) num_sent;
return ERR_OK;
}