diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-03-18 23:18:11 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-03 00:22:08 +0200 |
commit | 0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch) | |
tree | f8778cca656943ee36193b49a7727557ba82319b /pflocal | |
parent | 6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff) | |
download | hurd-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 'pflocal')
-rw-r--r-- | pflocal/sock.c | 4 | ||||
-rw-r--r-- | pflocal/sserver.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pflocal/sock.c b/pflocal/sock.c index 174494cd..3daf8282 100644 --- a/pflocal/sock.c +++ b/pflocal/sock.c @@ -500,7 +500,7 @@ sock_shutdown (struct sock *sock, unsigned flags) /* ---------------------------------------------------------------- */ error_t -sock_global_init () +sock_global_init (void) { sock_port_bucket = ports_create_bucket (); sock_user_port_class = ports_create_class (sock_user_clean, NULL); @@ -510,7 +510,7 @@ sock_global_init () /* Try to shutdown any active sockets, returning EBUSY if we can't. */ error_t -sock_global_shutdown () +sock_global_shutdown (void) { int num_ports = ports_count_bucket (sock_port_bucket); ports_enable_bucket (sock_port_bucket); diff --git a/pflocal/sserver.c b/pflocal/sserver.c index e500a75f..55d2d188 100644 --- a/pflocal/sserver.c +++ b/pflocal/sserver.c @@ -83,7 +83,7 @@ handle_sock_requests (void *unused) port(s) which need server, as the server routine only operates while there are any ports. */ void -ensure_sock_server () +ensure_sock_server (void) { pthread_t thread; error_t err; |