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 /libports | |
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 'libports')
-rw-r--r-- | libports/create-bucket.c | 4 | ||||
-rw-r--r-- | libports/inhibit-all-rpcs.c | 2 | ||||
-rw-r--r-- | libports/interrupted.c | 2 | ||||
-rw-r--r-- | libports/resume-all-rpcs.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/libports/create-bucket.c b/libports/create-bucket.c index 81fe044c..1095332e 100644 --- a/libports/create-bucket.c +++ b/libports/create-bucket.c @@ -28,13 +28,13 @@ static struct port_class *notify_port_class; static pthread_once_t init_notify_port_class_once = PTHREAD_ONCE_INIT; static void -init_notify_port_class () +init_notify_port_class (void) { notify_port_class = ports_create_class (NULL, NULL); } struct port_bucket * -ports_create_bucket () +ports_create_bucket (void) { struct port_bucket *ret; error_t err; diff --git a/libports/inhibit-all-rpcs.c b/libports/inhibit-all-rpcs.c index 71aecf14..1e6e47ea 100644 --- a/libports/inhibit-all-rpcs.c +++ b/libports/inhibit-all-rpcs.c @@ -23,7 +23,7 @@ #include <hurd/ihash.h> error_t -ports_inhibit_all_rpcs () +ports_inhibit_all_rpcs (void) { error_t err = 0; diff --git a/libports/interrupted.c b/libports/interrupted.c index 88fb9ef0..5cd97bad 100644 --- a/libports/interrupted.c +++ b/libports/interrupted.c @@ -28,7 +28,7 @@ static struct rpc_info *interrupted = 0; /* If the current thread's rpc has been interrupted with ports_interrupt_rpcs, return true (and clear the interrupted flag). */ int -ports_self_interrupted () +ports_self_interrupted (void) { struct rpc_info **rpc_p, *rpc; thread_t self = hurd_thread_self (); diff --git a/libports/resume-all-rpcs.c b/libports/resume-all-rpcs.c index 0b78c925..3c612b67 100644 --- a/libports/resume-all-rpcs.c +++ b/libports/resume-all-rpcs.c @@ -22,7 +22,7 @@ #include <assert-backtrace.h> void -ports_resume_all_rpcs () +ports_resume_all_rpcs (void) { pthread_mutex_lock (&_ports_lock); assert_backtrace (_ports_flags & _PORTS_INHIBITED); |