mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
etharp: fixed casting 'ctime' from u16_t to u8_t in local variables (introduced when fixing bug #34682)
This commit is contained in:
parent
32c6f96000
commit
01391f0234
@ -268,11 +268,11 @@ etharp_find_entry(ip_addr_t *ipaddr, u8_t flags)
|
||||
{
|
||||
s8_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE;
|
||||
s8_t empty = ARP_TABLE_SIZE;
|
||||
u8_t i = 0, age_pending = 0, age_stable = 0;
|
||||
u8_t i = 0;
|
||||
/* oldest entry with packets on queue */
|
||||
s8_t old_queue = ARP_TABLE_SIZE;
|
||||
/* its age */
|
||||
u8_t age_queue = 0;
|
||||
u16_t age_queue = 0, age_pending = 0, age_stable = 0;
|
||||
|
||||
/**
|
||||
* a) do a search through the cache, remember candidates
|
||||
@ -1427,7 +1427,7 @@ ethernet_input(struct pbuf *p, struct netif *netif)
|
||||
etharp_ip_input(netif, p);
|
||||
#endif /* ETHARP_TRUST_IP_MAC */
|
||||
/* skip Ethernet header */
|
||||
if(pbuf_header(p, -ip_hdr_offset)) {
|
||||
if(pbuf_header(p, (s16_t)-ip_hdr_offset)) {
|
||||
LWIP_ASSERT("Can't move over header in packet", 0);
|
||||
goto free_and_return;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user