* pbuf.c, ppp.c: Fix warnings on some systems with mem_malloc.

This commit is contained in:
jifl
2008-03-04 16:37:46 +00:00
parent 30d4c243ec
commit f067d34392
3 changed files with 3 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
break;
case PBUF_RAM:
/* If pbuf is to be allocated in RAM, allocate memory for it. */
p = mem_malloc(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF + offset) + LWIP_MEM_ALIGN_SIZE(length));
p = (struct pbuf*)mem_malloc(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF + offset) + LWIP_MEM_ALIGN_SIZE(length));
if (p == NULL) {
return NULL;
}