From 0209b2c932994e9ca55d39d98a83ea02aacd1332 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 18 Mar 2023 23:18:11 -0400 Subject: Modernize code by removing use of old style definitions. Also add -Werror=old-style-definition to enforce new code. Message-Id: --- lwip/lwip-util.c | 4 ++-- lwip/port/netif/hurdethif.c | 2 +- lwip/port/netif/hurdtunif.c | 2 +- lwip/startup.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lwip') diff --git a/lwip/lwip-util.c b/lwip/lwip-util.c index 61f3194a..fc4cb137 100644 --- a/lwip/lwip-util.c +++ b/lwip/lwip-util.c @@ -101,7 +101,7 @@ ipv4config_is_valid (uint32_t addr, uint32_t netmask, /* Configure the loopback interface */ static void -init_loopback () +init_loopback (void) { struct ifcommon ifc; @@ -114,7 +114,7 @@ init_loopback () /* Remove the existing interfaces, but the loopback one */ void -remove_ifs () +remove_ifs (void) { struct netif *netif; diff --git a/lwip/port/netif/hurdethif.c b/lwip/port/netif/hurdethif.c index ec899e40..68d7680b 100644 --- a/lwip/port/netif/hurdethif.c +++ b/lwip/port/netif/hurdethif.c @@ -556,7 +556,7 @@ hurdethif_input_thread (void *arg) * This function should be called once. */ error_t -hurdethif_module_init () +hurdethif_module_init (void) { error_t err; etherport_bucket = ports_create_bucket (); diff --git a/lwip/port/netif/hurdtunif.c b/lwip/port/netif/hurdtunif.c index c976703f..da4d5cbe 100644 --- a/lwip/port/netif/hurdtunif.c +++ b/lwip/port/netif/hurdtunif.c @@ -278,7 +278,7 @@ hurdtunif_device_init (struct netif *netif) * This function should be called once. */ error_t -hurdtunif_module_init () +hurdtunif_module_init (void) { error_t err = 0; diff --git a/lwip/startup.c b/lwip/startup.c index 125a49e3..b5d9f763 100644 --- a/lwip/startup.c +++ b/lwip/startup.c @@ -38,7 +38,7 @@ sigterm_handler (int signo) } void -arrange_shutdown_notification () +arrange_shutdown_notification (void) { error_t err; mach_port_t initport, notify; -- cgit v1.2.3