public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* [RFC 8/9] * Fix LWIP compiler warnings
@ 2013-06-27 19:22 Will Wagner
  0 siblings, 0 replies; only message in thread
From: Will Wagner @ 2013-06-27 19:22 UTC (permalink / raw)
  To: eCos development list

Add some casts to prevent compiler warnings

Signed-off-by: Andrew Parlane <andrewp@carallon.com>
Signed-off-by: Will Wagner <willw@carallon.com>
---
  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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-27 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27 19:22 [RFC 8/9] * Fix LWIP compiler warnings Will Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).