From 0209b2c932994e9ca55d39d98a83ea02aacd1332 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 18 Mar 2023 23:18:11 -0400 Subject: Modernize code by removing use of old style definitions. Also add -Werror=old-style-definition to enforce new code. Message-Id: --- isofs/pager.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'isofs/pager.c') diff --git a/isofs/pager.c b/isofs/pager.c index c2da2c0b..7838bdfc 100644 --- a/isofs/pager.c +++ b/isofs/pager.c @@ -258,7 +258,7 @@ allow_pager_softrefs (struct node *np) static void -block_caching () +block_caching (void) { error_t block_cache (void *arg) { @@ -274,7 +274,7 @@ block_caching () } static void -enable_caching () +enable_caching (void) { error_t enable_cache (void *arg) { @@ -305,7 +305,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 (pager_bucket); @@ -334,7 +334,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) { /* We never allow writing, so there's no need to carefully check it. */ return VM_PROT_READ | VM_PROT_EXECUTE; @@ -354,7 +354,7 @@ diskfs_get_filemap_pager_struct (struct node *np) /* Shutdown all the pagers. */ void -diskfs_shutdown_pager () +diskfs_shutdown_pager (void) { /* Because there's no need to ever sync, we don't have to do anything here. */ -- cgit v1.2.3