From 39f85387768c8fa9388a88d2da89e0d59cc292fa Mon Sep 17 00:00:00 2001 From: christiaans Date: Tue, 21 Mar 2006 08:28:15 +0000 Subject: [PATCH] Fixed compilation warning on sizeof(), reported by Beach at 20060320. --- src/netif/etharp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 7765046d..9c0e749c 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -477,7 +477,7 @@ etharp_arp_input(struct netif *netif, struct eth_addr *ethaddr, struct pbuf *p) /* drop short ARP packets */ if (p->tot_len < sizeof(struct etharp_hdr)) { - LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE | 1, ("etharp_arp_input: packet dropped, too short (%"S16_F"/%"S16_F")\n", p->tot_len, sizeof(struct etharp_hdr))); + LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE | 1, ("etharp_arp_input: packet dropped, too short (%"S16_F"/%"S16_F")\n", p->tot_len, (s16_t)sizeof(struct etharp_hdr))); pbuf_free(p); return; }