aboutsummaryrefslogtreecommitdiff
path: root/lwip/port/netif
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-03-18 23:18:11 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:22:08 +0200
commit0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch)
treef8778cca656943ee36193b49a7727557ba82319b /lwip/port/netif
parent6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff)
downloadhurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.tar.gz
hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.tar.bz2
hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.zip
Modernize code by removing use of old style definitions.
Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
Diffstat (limited to 'lwip/port/netif')
-rw-r--r--lwip/port/netif/hurdethif.c2
-rw-r--r--lwip/port/netif/hurdtunif.c2
2 files changed, 2 insertions, 2 deletions
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;