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: --- ext2fs/ext2fs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext2fs') diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h index c17cf37c..99e93555 100644 --- a/ext2fs/ext2fs.h +++ b/ext2fs/ext2fs.h @@ -307,13 +307,13 @@ extern vm_address_t zeroblock; /* Get the superblock from the disk, point `sblock' to it, and setup various global info from it. */ -void get_hypermetadata (); +void get_hypermetadata (void); /* Map `group_desc_image' pointers to disk cache. Also, establish a non-exported mapping to the superblock that will be used by diskfs_set_hypermetadata to update the superblock from the cache `sblock' points to. */ -void map_hypermetadata (); +void map_hypermetadata (void); /* ---------------------------------------------------------------- */ /* Random stuff calculated from the super block. */ @@ -444,7 +444,7 @@ _dino_deref (struct ext2_inode *inode) /* inode.c */ /* Write all active disknodes into the inode pager. */ -void write_all_disknodes (); +void write_all_disknodes (void); /* ---------------------------------------------------------------- */ -- cgit v1.2.3