api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used).

This commit is contained in:
fbernon 2007-03-22 09:34:18 +00:00
parent db739d16ce
commit 544e469eeb
3 changed files with 3 additions and 27 deletions

View File

@ -71,6 +71,9 @@ HISTORY
++ Bug fixes:
2007-03-22 Frédéric Bernon
* api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used).
2007-03-22 Frédéric Bernon
* api_lib.c: somes resources couldn't be freed if there was errors during
netconn_new_with_proto_and_callback.

View File

@ -635,31 +635,6 @@ do_listen(struct api_msg_msg *msg)
sys_mbox_post(msg->conn->mbox, NULL);
}
static void
do_accept(struct api_msg_msg *msg)
{
if (msg->conn->pcb.tcp != NULL) {
switch (msg->conn->type) {
#if LWIP_RAW
case NETCONN_RAW:
LWIP_DEBUGF(API_MSG_DEBUG, ("api_msg: accept RAW: cannot accept for RAW.\n"));
break;
#endif
#if LWIP_UDP
case NETCONN_UDPLITE:
/* FALLTHROUGH */
case NETCONN_UDPNOCHKSUM:
/* FALLTHROUGH */
case NETCONN_UDP:
LWIP_DEBUGF(API_MSG_DEBUG, ("api_msg: accept UDP: cannot accept for UDP.\n"));
break;
#endif /* LWIP_UDP */
case NETCONN_TCP:
break;
}
}
}
static void
do_send(struct api_msg_msg *msg)
{
@ -829,7 +804,6 @@ static api_msg_decode decode[API_MSG_MAX] = {
do_connect,
do_disconnect,
do_listen,
do_accept,
do_send,
do_recv,
do_write,

View File

@ -52,7 +52,6 @@ enum api_msg_type {
API_MSG_DISCONNECT,
API_MSG_LISTEN,
API_MSG_ACCEPT,
API_MSG_SEND,
API_MSG_RECV,