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: --- eth-multiplexer/vdev.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eth-multiplexer') diff --git a/eth-multiplexer/vdev.h b/eth-multiplexer/vdev.h index 113bb514..40e4a176 100644 --- a/eth-multiplexer/vdev.h +++ b/eth-multiplexer/vdev.h @@ -62,15 +62,15 @@ struct vether_device typedef int (*dev_act_func) (struct vether_device *); int serv_connect (mach_port_t port); -int serv_disconnect (); +int serv_disconnect (void); struct vether_device *lookup_dev_by_name (const char *name); int remove_dead_port_from_dev (mach_port_t dead_port); struct vether_device *add_vdev (char *name, size_t size); void destroy_vdev (void *port); -boolean_t all_dev_close (); +boolean_t all_dev_close (void); int broadcast_pack (char *data, int datalen, struct vether_device *from_vdev); int broadcast_msg (struct net_rcv_msg *msg); -int get_dev_num (); +int get_dev_num (void); int foreach_dev_do (dev_act_func func); /* dev_stat.c */ -- cgit v1.2.3