Fix typo, add comment

This commit is contained in:
goldsimon 2008-06-27 20:34:51 +00:00
parent 779938ea68
commit 95b15fe463
2 changed files with 3 additions and 2 deletions

View File

@ -525,7 +525,7 @@ tcpip_init(void (* initfunc)(void *), void *arg)
* @param p The pbuf (chain) to be dereferenced. * @param p The pbuf (chain) to be dereferenced.
*/ */
static void static void
pub_free_int(void *p) pbuf_free_int(void *p)
{ {
struct pbuf *q = p; struct pbuf *q = p;
pbuf_free(q); pbuf_free(q);
@ -540,7 +540,7 @@ pub_free_int(void *p)
err_t err_t
pbuf_free_callback(struct pbuf *p) pbuf_free_callback(struct pbuf *p)
{ {
return tcpip_callback_with_block(pub_free_int, p, 0); return tcpip_callback_with_block(pbuf_free_int, p, 0);
} }
/** /**

View File

@ -85,6 +85,7 @@ err_t tcpip_netifapi_lock(struct netifapi_msg *netifapimsg);
err_t tcpip_callback_with_block(void (*f)(void *ctx), void *ctx, u8_t block); err_t tcpip_callback_with_block(void (*f)(void *ctx), void *ctx, u8_t block);
#define tcpip_callback(f, ctx) tcpip_callback_with_block(f, ctx, 1) #define tcpip_callback(f, ctx) tcpip_callback_with_block(f, ctx, 1)
/* free pbufs or heap memory from another context without blocking */
err_t pbuf_free_callback(struct pbuf *p); err_t pbuf_free_callback(struct pbuf *p);
err_t mem_free_callback(void *m); err_t mem_free_callback(void *m);