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 /ext2fs | |
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 'ext2fs')
-rw-r--r-- | ext2fs/balloc.c | 4 | ||||
-rw-r--r-- | ext2fs/ext2fs.c | 2 | ||||
-rw-r--r-- | ext2fs/ialloc.c | 4 | ||||
-rw-r--r-- | ext2fs/inode.c | 4 | ||||
-rw-r--r-- | ext2fs/pager.c | 14 |
5 files changed, 14 insertions, 14 deletions
diff --git a/ext2fs/balloc.c b/ext2fs/balloc.c index 337b583b..c8137755 100644 --- a/ext2fs/balloc.c +++ b/ext2fs/balloc.c @@ -406,7 +406,7 @@ got_block: } unsigned long -ext2_count_free_blocks () +ext2_count_free_blocks (void) { #ifdef EXT2FS_DEBUG unsigned long desc_count, bitmap_count, x; @@ -448,7 +448,7 @@ block_in_use (block_t block, unsigned char *map) } void -ext2_check_blocks_bitmap () +ext2_check_blocks_bitmap (void) { unsigned char *bh; unsigned long desc_count, bitmap_count, x; diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index 14952d7d..8e434969 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -262,7 +262,7 @@ main (int argc, char **argv) } error_t -diskfs_reload_global_state () +diskfs_reload_global_state (void) { error_t err; diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 9ab631db..3e26be7e 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -366,7 +366,7 @@ diskfs_alloc_node (struct node *dir, mode_t mode, struct node **node) /* ---------------------------------------------------------------- */ unsigned long -ext2_count_free_inodes () +ext2_count_free_inodes (void) { #ifdef EXT2FS_DEBUG unsigned long desc_count, bitmap_count, x; @@ -402,7 +402,7 @@ ext2_count_free_inodes () /* ---------------------------------------------------------------- */ void -ext2_check_inodes_bitmap () +ext2_check_inodes_bitmap (void) { int i; struct ext2_group_desc *gdp; diff --git a/ext2fs/inode.c b/ext2fs/inode.c index fda3dcba..0bfaa77f 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -487,7 +487,7 @@ diskfs_node_reload (struct node *node) /* Write all active disknodes into the ext2_inode pager. */ void -write_all_disknodes () +write_all_disknodes (void) { error_t write_one_disknode (struct node *node) { @@ -828,7 +828,7 @@ error_t (*diskfs_read_symlink_hook)(struct node *np, char *target) = /* Called when all hard ports have gone away. */ void -diskfs_shutdown_soft_ports () +diskfs_shutdown_soft_ports (void) { /* Should initiate termination of internally held pager ports (the only things that should be soft) XXX */ diff --git a/ext2fs/pager.c b/ext2fs/pager.c index fca5aa8c..e6e1dca6 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -87,7 +87,7 @@ disk_cache_info_free_push (struct disk_cache_info *p); /* Returns a single page page-aligned buffer. */ static void * -get_page_buf () +get_page_buf (void) { static pthread_mutex_t free_page_bufs_lock = PTHREAD_MUTEX_INITIALIZER; static void *free_page_bufs; @@ -184,7 +184,7 @@ file_pager_read_page (struct node *node, vm_offset_t page, pointed to by BUF (allocating it if necessary) at offset OFFS. OFFS in adjusted by the amount read, and NUM_PENDING_BLOCKS is zeroed. Any read error is returned. */ - error_t do_pending_reads () + error_t do_pending_reads (void) { if (num_pending_blocks > 0) { @@ -1402,7 +1402,7 @@ diskfs_get_filemap_pager_struct (struct node *node) /* Shutdown all the pagers (except the disk pager). */ void -diskfs_shutdown_pager () +diskfs_shutdown_pager (void) { error_t shutdown_one (void *v_p) { @@ -1441,7 +1441,7 @@ diskfs_sync_everything (int wait) } static void -disable_caching () +disable_caching (void) { error_t block_cache (void *arg) { @@ -1458,7 +1458,7 @@ disable_caching () } static void -enable_caching () +enable_caching (void) { error_t enable_cache (void *arg) { @@ -1489,7 +1489,7 @@ enable_caching () /* Tell diskfs if there are pagers exported, and if none, then prevent any new ones from showing up. */ int -diskfs_pager_users () +diskfs_pager_users (void) { int npagers = ports_count_bucket (file_pager_bucket); @@ -1521,7 +1521,7 @@ diskfs_pager_users () /* Return the bitwise or of the maximum prot parameter (the second arg to diskfs_get_filemap) for all active user pagers. */ vm_prot_t -diskfs_max_user_pager_prot () +diskfs_max_user_pager_prot (void) { vm_prot_t max_prot = 0; int npagers = ports_count_bucket (file_pager_bucket); |