mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-09 12:38:14 +00:00
netconn: api_msg.c, fixed warning about unused state variable by using it a little more
This commit is contained in:
parent
acbdf63a48
commit
44af6978db
@ -997,10 +997,10 @@ lwip_netconn_do_delconn(struct api_msg_msg *msg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else /* LWIP_NETCONN_FULLDUPLEX */
|
#else /* LWIP_NETCONN_FULLDUPLEX */
|
||||||
if (((msg->conn->state != NETCONN_NONE) &&
|
if (((state != NETCONN_NONE) &&
|
||||||
(msg->conn->state != NETCONN_LISTEN) &&
|
(state != NETCONN_LISTEN) &&
|
||||||
(msg->conn->state != NETCONN_CONNECT)) ||
|
(state != NETCONN_CONNECT)) ||
|
||||||
((msg->conn->state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) {
|
((state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) {
|
||||||
/* This means either a blocking write or blocking connect is running
|
/* This means either a blocking write or blocking connect is running
|
||||||
(nonblocking write returns and sets state to NONE) */
|
(nonblocking write returns and sets state to NONE) */
|
||||||
msg->err = ERR_INPROGRESS;
|
msg->err = ERR_INPROGRESS;
|
||||||
@ -1008,7 +1008,7 @@ lwip_netconn_do_delconn(struct api_msg_msg *msg)
|
|||||||
#endif /* LWIP_NETCONN_FULLDUPLEX */
|
#endif /* LWIP_NETCONN_FULLDUPLEX */
|
||||||
{
|
{
|
||||||
LWIP_ASSERT("blocking connect in progress",
|
LWIP_ASSERT("blocking connect in progress",
|
||||||
(msg->conn->state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn));
|
(state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn));
|
||||||
msg->err = ERR_OK;
|
msg->err = ERR_OK;
|
||||||
/* Drain and delete mboxes */
|
/* Drain and delete mboxes */
|
||||||
netconn_drain(msg->conn);
|
netconn_drain(msg->conn);
|
||||||
|
Loading…
Reference in New Issue
Block a user