/[lwip]/lwip/src/api/api_lib.c
ViewVC logotype

Diff of /lwip/src/api/api_lib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by kieranm, Mon Mar 31 09:34:56 2003 UTC revision 1.12 by davidhaas, Wed Apr 9 20:12:12 2003 UTC
# Line 255  netconn_delete(struct netconn *conn) Line 255  netconn_delete(struct netconn *conn)
255    
256    /* Drain the recvmbox. */    /* Drain the recvmbox. */
257    if(conn->recvmbox != SYS_MBOX_NULL) {    if(conn->recvmbox != SYS_MBOX_NULL) {
258      while(sys_arch_mbox_fetch(conn->recvmbox, &mem, 1) != 0) {      while(sys_arch_mbox_fetch(conn->recvmbox, &mem, 1) != SYS_ARCH_TIMEOUT) {
259        if(conn->type == NETCONN_TCP) {        if(conn->type == NETCONN_TCP) {
260          pbuf_free((struct pbuf *)mem);          pbuf_free((struct pbuf *)mem);
261        } else {        } else {
# Line 269  netconn_delete(struct netconn *conn) Line 269  netconn_delete(struct netconn *conn)
269    
270    /* Drain the acceptmbox. */    /* Drain the acceptmbox. */
271    if(conn->acceptmbox != SYS_MBOX_NULL) {    if(conn->acceptmbox != SYS_MBOX_NULL) {
272      while(sys_arch_mbox_fetch(conn->acceptmbox, &mem, 1) != 0) {      while(sys_arch_mbox_fetch(conn->acceptmbox, &mem, 1) != SYS_ARCH_TIMEOUT) {
273        netconn_delete((struct netconn *)mem);        netconn_delete((struct netconn *)mem);
274      }      }
275            

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26