api_msg.c: Remove some compiler warnings : parameter "pcb" was never referenced.

This commit is contained in:
fbernon 2007-03-04 16:25:04 +00:00
parent 12e0a2ef7d
commit 1ffd049833
2 changed files with 15 additions and 0 deletions

View File

@ -42,6 +42,9 @@ HISTORY
++ Bug fixes:
2007-03-04 Frédéric Bernon
* api_msg.c: Remove some compiler warnings : parameter "pcb" was never referenced.
2007-03-04 Frédéric Bernon
* api_lib.c: Fix "[patch #5764] api_lib.c cleanup: after patch #5687" (from Dmitry Potapov).
The api_msg struct stay on the stack (not moved to netconn struct).

View File

@ -76,6 +76,8 @@ recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p,
struct netbuf *buf;
struct netconn *conn;
pcb = pcb; // Remove warning
conn = arg;
if (conn == NULL) {
@ -110,6 +112,8 @@ recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
struct netconn *conn;
u16_t len;
pcb = pcb; // Remove warning
conn = arg;
if (conn == NULL) {
@ -140,7 +144,10 @@ poll_tcp(void *arg, struct tcp_pcb *pcb)
{
struct netconn *conn;
pcb = pcb; // Remove warning
conn = arg;
if (conn != NULL &&
(conn->state == NETCONN_WRITE || conn->state == NETCONN_CLOSE) &&
conn->sem != SYS_SEM_NULL) {
@ -154,7 +161,10 @@ sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len)
{
struct netconn *conn;
pcb = pcb; // Remove warning
conn = arg;
if (conn != NULL && conn->sem != SYS_SEM_NULL) {
sys_sem_signal(conn->sem);
}
@ -455,6 +465,8 @@ do_connected(void *arg, struct tcp_pcb *pcb, err_t err)
{
struct netconn *conn;
pcb = pcb; // Remove warning
conn = arg;
if (conn == NULL) {