From f0b33f5ced4ccbdef6f868c3b1dc6033898404f7 Mon Sep 17 00:00:00 2001 From: jifl Date: Fri, 27 Jul 2007 15:06:03 +0000 Subject: [PATCH] Make pbuf_init() call be an empty macro for now --- src/core/pbuf.c | 12 ------------ src/include/lwip/pbuf.h | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 0c42b9e5..6dc63228 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -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). * diff --git a/src/include/lwip/pbuf.h b/src/include/lwip/pbuf.h index 578a5344..b159722a 100644 --- a/src/include/lwip/pbuf.h +++ b/src/include/lwip/pbuf.h @@ -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);