From a096270c77b1f6461a2ef58660ad9cfa9cbb32bb Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 8 Apr 2023 01:03:31 -0400 Subject: Further modernize Hurd code by enforcing strict prototypes and no implicit function declarations. Most of the changes land in one of these buckets: * Removed unused declarations. * Used (void) to represent no parameters instead of () which means an undeterminate number of parameters. * Included missing header files whenever necessary (stdlib.h, sys/mman.h, etc) * Typedefed function pointers to be able to fully declare the parameter types. * Added declarations of library functions that are used elsewhere (example is libps/ps.h). * Made functions static whenever they are only used in that file. * Forwarded declarations of some methods that were made static. Message-Id: --- lwip/port/include/netif/hurdethif.h | 2 +- lwip/port/include/netif/hurdtunif.h | 2 +- lwip/startup.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lwip') diff --git a/lwip/port/include/netif/hurdethif.h b/lwip/port/include/netif/hurdethif.h index 0ecbbd91..d4c70c41 100644 --- a/lwip/port/include/netif/hurdethif.h +++ b/lwip/port/include/netif/hurdethif.h @@ -34,6 +34,6 @@ typedef struct ifcommon hurdethif; err_t hurdethif_device_init (struct netif *netif); /* Module initialization */ -error_t hurdethif_module_init (); +error_t hurdethif_module_init (void); #endif /* LWIP_HURDETHIF_H */ diff --git a/lwip/port/include/netif/hurdtunif.h b/lwip/port/include/netif/hurdtunif.h index 43d55348..eef7ecb0 100644 --- a/lwip/port/include/netif/hurdtunif.h +++ b/lwip/port/include/netif/hurdtunif.h @@ -60,6 +60,6 @@ extern struct port_class *tunnel_class; err_t hurdtunif_device_init (struct netif *netif); /* Module initialization */ -error_t hurdtunif_module_init (); +error_t hurdtunif_module_init (void); #endif /* LWIP_HURDTUNIF_H */ diff --git a/lwip/startup.h b/lwip/startup.h index 0c197bf0..75b909c5 100644 --- a/lwip/startup.h +++ b/lwip/startup.h @@ -21,6 +21,6 @@ #ifndef LWIP_STARTUP_H #define LWIP_STARTUP_H -void arrange_shutdown_notification (); +void arrange_shutdown_notification (void); #endif /* LWIP_STARTUP_H */ -- cgit v1.2.3