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

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

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

revision 1.12 by kieranm, Tue Jun 10 10:45:29 2003 UTC revision 1.13 by marcbou, Fri Jun 27 20:46:11 2003 UTC
# Line 110  tcpip_thread(void *arg) Line 110  tcpip_thread(void *arg)
110      default:      default:
111        break;        break;
112      }      }
113      memp_freep(MEMP_TCPIP_MSG, msg);      memp_free(MEMP_TCPIP_MSG, msg);
114    }    }
115  }  }
116  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/
# Line 119  tcpip_input(struct pbuf *p, struct netif Line 119  tcpip_input(struct pbuf *p, struct netif
119  {  {
120    struct tcpip_msg *msg;    struct tcpip_msg *msg;
121        
122    msg = memp_mallocp(MEMP_TCPIP_MSG);    msg = memp_malloc(MEMP_TCPIP_MSG);
123    if (msg == NULL) {    if (msg == NULL) {
124      pbuf_free(p);          pbuf_free(p);    
125      return ERR_MEM;        return ERR_MEM;  
# Line 137  tcpip_callback(void (*f)(void *ctx), voi Line 137  tcpip_callback(void (*f)(void *ctx), voi
137  {  {
138    struct tcpip_msg *msg;    struct tcpip_msg *msg;
139        
140    msg = memp_mallocp(MEMP_TCPIP_MSG);    msg = memp_malloc(MEMP_TCPIP_MSG);
141    if (msg == NULL) {    if (msg == NULL) {
142      return ERR_MEM;        return ERR_MEM;  
143    }    }
# Line 153  void Line 153  void
153  tcpip_apimsg(struct api_msg *apimsg)  tcpip_apimsg(struct api_msg *apimsg)
154  {  {
155    struct tcpip_msg *msg;    struct tcpip_msg *msg;
156    msg = memp_mallocp(MEMP_TCPIP_MSG);    msg = memp_malloc(MEMP_TCPIP_MSG);
157    if (msg == NULL) {    if (msg == NULL) {
158      memp_free(MEMP_API_MSG, apimsg);      memp_free(MEMP_API_MSG, apimsg);
159      return;      return;

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

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