mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-06 09:56:38 +00:00
Removed warning: sizeof() was automatically casted to negative
This commit is contained in:
parent
7aea2cd6f1
commit
bef0503545
@ -140,7 +140,7 @@ ethernet_input(struct pbuf *p, struct netif *netif)
|
|||||||
etharp_ip_input( netif, p);
|
etharp_ip_input( netif, p);
|
||||||
#endif
|
#endif
|
||||||
/* skip Ethernet header */
|
/* skip Ethernet header */
|
||||||
if(pbuf_header(p, (s16_t)(-sizeof(struct eth_hdr)))) {
|
if(pbuf_header(p, -(s16_t)sizeof(struct eth_hdr))) {
|
||||||
LWIP_ASSERT("Can't move over header in packet", 0);
|
LWIP_ASSERT("Can't move over header in packet", 0);
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
p = NULL;
|
p = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user