From 544e469eebf6f91140e27cbad32efbde95118d9d Mon Sep 17 00:00:00 2001 From: fbernon Date: Thu, 22 Mar 2007 09:34:18 +0000 Subject: [PATCH] api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used). --- CHANGELOG | 3 +++ src/api/api_msg.c | 26 -------------------------- src/include/lwip/api_msg.h | 1 - 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 50b83e74..48148cf7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/src/api/api_msg.c b/src/api/api_msg.c index 39519223..39f5ff6d 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -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, diff --git a/src/include/lwip/api_msg.h b/src/include/lwip/api_msg.h index 879fe4dc..d99760a1 100644 --- a/src/include/lwip/api_msg.h +++ b/src/include/lwip/api_msg.h @@ -52,7 +52,6 @@ enum api_msg_type { API_MSG_DISCONNECT, API_MSG_LISTEN, - API_MSG_ACCEPT, API_MSG_SEND, API_MSG_RECV,