aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/ialloc.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-03-18 23:18:11 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:22:08 +0200
commit0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch)
treef8778cca656943ee36193b49a7727557ba82319b /ext2fs/ialloc.c
parent6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff)
downloadhurd-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/ialloc.c')
-rw-r--r--ext2fs/ialloc.c4
1 files changed, 2 insertions, 2 deletions
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;