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: --- boot/boot.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'boot/boot.c') diff --git a/boot/boot.c b/boot/boot.c index 11970498..e0c6bfb2 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -146,9 +146,6 @@ int console_mscount; vm_address_t fs_stack_base; vm_size_t fs_stack_size; -void init_termstate (); -void restore_termstate (); - char *fsname; char bootstrap_args[100] = "-"; @@ -272,8 +269,8 @@ boot_demuxer (mach_msg_header_t *inp, return FALSE; } -void read_reply (); -void * msg_thread (void *); +static void read_reply (void); +static void * msg_thread (void *); const char *argp_program_version = STANDARD_HURD_VERSION (boot); @@ -835,7 +832,7 @@ queue_read (enum read_type type, static int should_read = 0; /* Reply to a queued read. */ -void +static void read_reply (void) { int avail; -- cgit v1.2.3