[RFC 8/9] * Fix LWIP compiler warnings
Will Wagner <[email protected]> Thu, 27 Jun 2013 20:22:50 +0100
| Newsgroups | gmane.os.ecos.devel |
|---|---|
| Message-ID | <[email protected]> |
Add some casts to prevent compiler warnings Signed-off-by: Andrew Parlane <[email protected]> Signed-off-by: Will Wagner <[email protected]> --- packages/net/lwip_tcpip/current/include/lwip/pbuf.h | 2 +- packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/net/lwip_tcpip/current/include/lwip/pbuf.h b/packages/net/lwip_tcpip/current/include/lwip/pbuf.h index 99d5443..99cf20a 100644 --- a/packages/net/lwip_tcpip/current/include/lwip/pbuf.h +++ b/packages/net/lwip_tcpip/current/include/lwip/pbuf.h @@ -129,7 +129,7 @@ struct pbuf_custom { #endif /* PBUF_POOL_FREE_OOSEQ */ #if NO_SYS && PBUF_POOL_FREE_OOSEQ extern volatile u8_t pbuf_free_ooseq_pending; -void pbuf_free_ooseq(); +void pbuf_free_ooseq(void); /** When not using sys_check_timeouts(), call PBUF_CHECK_FREE_OOSEQ() at regular intervals from main level to check if ooseq pbufs need to be freed! */ diff --git a/packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c b/packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c index 45bb5d9..f273b2f 100644 --- a/packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c +++ b/packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c @@ -166,8 +166,8 @@ igmp_init(void) * Dump global IGMP groups list */ void -igmp_dump_group_list() -{ +igmp_dump_group_list(void) +{ struct igmp_group *group = igmp_group_list; while (group != NULL) { -- 1.8.1.msysgit.1