Fixed multiple smaller compiler warnings

This commit is contained in:
goldsimon
2014-11-07 14:29:53 +01:00
parent a5e748de84
commit ec93b03d8d
10 changed files with 29 additions and 12 deletions

View File

@@ -552,7 +552,7 @@ ip_input(struct pbuf *p, struct netif *inp)
if (raw_input(p, inp) == 0)
#endif /* LWIP_RAW */
{
pbuf_header(p, -iphdr_hlen); /* Move to payload, no check necessary. */
pbuf_header(p, -(s16_t)iphdr_hlen); /* Move to payload, no check necessary. */
switch (IPH_PROTO(iphdr)) {
#if LWIP_UDP