aboutsummaryrefslogtreecommitdiff
path: root/eth-multiplexer
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-04-08 01:03:31 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-08 10:55:59 +0200
commita096270c77b1f6461a2ef58660ad9cfa9cbb32bb (patch)
treeb9c713ad70ae6705a1dfe6d76c35c0d918515d2e /eth-multiplexer
parent5de1b81f0bb24ba38d0a819bba9bd526863b5385 (diff)
downloadhurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.tar.gz
hurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.tar.bz2
hurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.zip
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: <ZDD1o7/tVYeZew+G@jupiter.tail36e24.ts.net>
Diffstat (limited to 'eth-multiplexer')
-rw-r--r--eth-multiplexer/vdev.h6
1 files changed, 3 insertions, 3 deletions
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 */