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 /boot | |
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 'boot')
-rw-r--r-- | boot/boot.c | 14 | ||||
-rw-r--r-- | boot/boot_script.c | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/boot/boot.c b/boot/boot.c index 978d8943..147bb2b0 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -83,7 +83,7 @@ static int isig; static char *kernel_command_line; static void -init_termstate () +init_termstate (void) { struct termios tty_state; @@ -100,7 +100,7 @@ init_termstate () } static void -restore_termstate () +restore_termstate (void) { tcsetattr (0, 0, &orig_tty_state); } @@ -837,7 +837,7 @@ static int should_read = 0; /* Reply to a queued read. */ void -read_reply () +read_reply (void) { int avail; struct qr *qr; @@ -919,7 +919,7 @@ read_reply () /* Unlock READLOCK, and also service any new read requests that it was blocking. */ static void -unlock_readlock () +unlock_readlock (void) { pthread_spin_unlock (&readlock); while (should_read) @@ -930,9 +930,9 @@ unlock_readlock () * Handle bootstrap requests. */ kern_return_t -do_bootstrap_privileged_ports(bootstrap, hostp, devicep) - mach_port_t bootstrap; - mach_port_t *hostp, *devicep; +do_bootstrap_privileged_ports(mach_port_t bootstrap, + mach_port_t *hostp, + mach_port_t *devicep) { *hostp = privileged_host_port; *devicep = pseudo_master_device_port; diff --git a/boot/boot_script.c b/boot/boot_script.c index 6fd449b2..54007e6b 100644 --- a/boot/boot_script.c +++ b/boot/boot_script.c @@ -488,7 +488,7 @@ boot_script_parse_line (void *hook, char *cmdline) /* Execute commands previously parsed. */ int -boot_script_exec () +boot_script_exec (void) { int cmd_index; |