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 <axel.lin@ingics.com>
Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
Axel Lin 2017-05-24 17:58:22 +08:00 committed by goldsimon
parent 356da76cc8
commit cbbfb1356c

View File

@ -174,7 +174,7 @@ pbuf_pool_is_empty(void)
/* Initialize members of struct pbuf after allocation */ /* Initialize members of struct pbuf after allocation */
static void 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->next = NULL;
p->payload = payload; p->payload = payload;