minor derivative to reduce compiler warnings and tag read-only parameters as const.

Dependents:   EthernetInterface

Fork of lwip by mbed official

Revision:
3:9a63dd787415
Parent:
0:51ac1d130fd4
Child:
12:931deec14b08
diff -r fcd6ac34b3f8 -r 9a63dd787415 core/pbuf.c
--- a/core/pbuf.c	Fri Jun 22 11:11:29 2012 +0000
+++ b/core/pbuf.c	Fri Jun 22 13:39:39 2012 +0000
@@ -376,7 +376,7 @@
 
   p->pbuf.next = NULL;
   if (payload_mem != NULL) {
-    p->pbuf.payload = LWIP_MEM_ALIGN((void *)((u8_t *)payload_mem + offset));
+    p->pbuf.payload = (void *)((u8_t *)payload_mem + offset);
   } else {
     p->pbuf.payload = NULL;
   }