Make pbuf_init() call be an empty macro for now

This commit is contained in:
jifl 2007-07-27 15:06:03 +00:00
parent 42eead8f41
commit f0b33f5ced
2 changed files with 2 additions and 13 deletions

View File

@ -77,18 +77,6 @@
aligned there. Therefore, PBUF_POOL_BUFSIZE_ALIGNED can be used here. */
#define PBUF_POOL_BUFSIZE_ALIGNED LWIP_MEM_ALIGN_SIZE(PBUF_POOL_BUFSIZE)
/**
* Initializes the pbuf module.
*
* Do some checks an initialize the pbuf pool.
*
*/
void
pbuf_init(void)
{
/* nothing to do here */
}
/**
* Allocates a pbuf of the given type (possibly a chain for PBUF_POOL type).
*

View File

@ -98,7 +98,8 @@ struct pbuf {
};
void pbuf_init(void);
/* Initializes the pbuf module. This call is empty for now, but may not be in future. */
#define pbuf_init() do { } while (0)
struct pbuf *pbuf_alloc(pbuf_layer l, u16_t size, pbuf_flag flag);
void pbuf_realloc(struct pbuf *p, u16_t size);