From cbbfb1356c7a5921a2de92d8da095d8471cbe281 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 24 May 2017 17:58:22 +0800 Subject: [PATCH] pbuf: Make pbuf_init_alloced_pbuf take pbuf_type instead of u8_t for type parameter All callers pass pbuf_type to pbuf_init_alloced_pbuf(), so make it take pbuf_type instead of u8_t. Signed-off-by: Axel Lin Signed-off-by: goldsimon --- src/core/pbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 10fa8787..f28e3104 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -174,7 +174,7 @@ pbuf_pool_is_empty(void) /* Initialize members of struct pbuf after allocation */ static void -pbuf_init_alloced_pbuf(struct pbuf *p, void* payload, u16_t tot_len, u16_t len, u8_t type) +pbuf_init_alloced_pbuf(struct pbuf *p, void* payload, u16_t tot_len, u16_t len, pbuf_type type) { p->next = NULL; p->payload = payload;