From 6ca2aa1284a5e82df0193d2727941420361bc50f Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 18:11:06 +0100 Subject: fix compiler warnings in hurd/ext2fs ext2fs: Fix compiler warnings. * ext2fs/balloc.c: Use unsigned char instead of char. * ext2fs/bitmap.c Use unsigned char for bitmaps. * ext2fs/dir.c: Fix format. * ext2fs/ext2fs.h: Use unsigned char for bitmaps. * ext2fs/ialloc.c: Use unsigned char for bitmaps. Fix format string in ext2_warning. * ext2fs/pager.c: Fix format string in ext2_warning and ext2_error. --- ext2fs/ialloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext2fs/ialloc.c') diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 7cfc4f32..2809371a 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -52,7 +52,7 @@ void diskfs_free_node (struct node *np, mode_t old_mode) { - char *bh; + unsigned char *bh; unsigned long block_group; unsigned long bit; struct ext2_group_desc *gdp; @@ -114,7 +114,7 @@ diskfs_free_node (struct node *np, mode_t old_mode) ino_t ext2_alloc_inode (ino_t dir_inum, mode_t mode) { - char *bh = NULL; + unsigned char *bh = NULL; int i, j, avefreei; ino_t inum; struct ext2_group_desc *gdp; @@ -225,7 +225,7 @@ repeat: { if (set_bit (inum, bh)) { - ext2_warning ("bit already set for inode %d", inum); + ext2_warning ("bit already set for inode %llu", inum); disk_cache_block_deref (bh); bh = NULL; goto repeat; @@ -250,7 +250,7 @@ repeat: if (inum < EXT2_FIRST_INO (sblock) || inum > sblock->s_inodes_count) { ext2_error ("reserved inode or inode > inodes count - " - "block_group = %d,inode=%d", i, inum); + "block_group = %d,inode=%llu", i, inum); inum = 0; goto sync_out; } -- cgit v1.2.3