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 /libdiskfs | |
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 'libdiskfs')
-rw-r--r-- | libdiskfs/boot-start.c | 4 | ||||
-rw-r--r-- | libdiskfs/console.c | 2 | ||||
-rw-r--r-- | libdiskfs/init-startup.c | 2 | ||||
-rw-r--r-- | libdiskfs/readonly.c | 2 | ||||
-rw-r--r-- | libdiskfs/remount.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index f245200d..7aaf3669 100644 --- a/libdiskfs/boot-start.c +++ b/libdiskfs/boot-start.c @@ -57,7 +57,7 @@ static void start_execserver (); char **diskfs_argv = 0; static mach_port_t -get_console () +get_console (void) { mach_port_t device_master, console; error_t err = get_privileged_ports (0, &device_master); @@ -95,7 +95,7 @@ _diskfs_boot_privports (void) /* Once diskfs_root_node is set, call this if we are a bootstrap filesystem. */ void -diskfs_start_bootstrap () +diskfs_start_bootstrap (void) { mach_port_t root_pt, startup_pt, bootpt; retry_type retry; diff --git a/libdiskfs/console.c b/libdiskfs/console.c index f47431fd..fa4fc2c5 100644 --- a/libdiskfs/console.c +++ b/libdiskfs/console.c @@ -35,7 +35,7 @@ /* Make sure errors go somewhere reasonable. */ void -diskfs_console_stdio () +diskfs_console_stdio (void) { if (getpid () > 0) { diff --git a/libdiskfs/init-startup.c b/libdiskfs/init-startup.c index 92ef8f94..a4095847 100644 --- a/libdiskfs/init-startup.c +++ b/libdiskfs/init-startup.c @@ -190,7 +190,7 @@ diskfs_S_startup_dosync (mach_port_t handle) /* This is called when we have an ordinary environment, complete with proc and auth ports. */ void -_diskfs_init_completed () +_diskfs_init_completed (void) { startup_t init; process_t proc; diff --git a/libdiskfs/readonly.c b/libdiskfs/readonly.c index 02f583c8..d0319375 100644 --- a/libdiskfs/readonly.c +++ b/libdiskfs/readonly.c @@ -30,7 +30,7 @@ int diskfs_readonly = 0; int diskfs_hard_readonly = 0; int -diskfs_check_readonly () +diskfs_check_readonly (void) { error_t err; diff --git a/libdiskfs/remount.c b/libdiskfs/remount.c index 1ed622f2..7e632ba3 100644 --- a/libdiskfs/remount.c +++ b/libdiskfs/remount.c @@ -26,7 +26,7 @@ DISKFS_READONLY is true. DISKFS_FSYS_LOCK should be held while calling this routine. */ error_t -diskfs_remount () +diskfs_remount (void) { error_t err; |