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: --- pflocal/sock.h | 4 ++-- pflocal/sserver.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pflocal') diff --git a/pflocal/sock.h b/pflocal/sock.h index 64b030e5..c686dec4 100644 --- a/pflocal/sock.h +++ b/pflocal/sock.h @@ -184,11 +184,11 @@ error_t addr_create (struct addr **addr); error_t addr_get_sock (struct addr *addr, struct sock **sock); /* Prepare for socket creation. */ -error_t sock_global_init (); +error_t sock_global_init (void); /* Try to shutdown any active sockets, returning EBUSY if we can't. Assumes non-socket RPCS's have been disabled. */ -error_t sock_global_shutdown (); +error_t sock_global_shutdown (void); /* Mostly here for use by mig-decls.h. */ extern struct port_class *sock_user_port_class; diff --git a/pflocal/sserver.h b/pflocal/sserver.h index 3769b7f9..bf668c87 100644 --- a/pflocal/sserver.h +++ b/pflocal/sserver.h @@ -25,7 +25,7 @@ a server if necessary. This routine should be called *after* creating the port(s) which need server, as the server routine only operates while there are any ports. */ -void ensure_sock_server (); +void ensure_sock_server (void); /* A port bucket to handle SOCK_USERs and ADDRs. */ extern struct port_bucket *sock_port_bucket; -- cgit v1.2.3