summaryrefslogtreecommitdiff
path: root/ext2fs/ialloc.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2015-12-29 18:11:06 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-12-29 20:47:40 +0100
commit6ca2aa1284a5e82df0193d2727941420361bc50f (patch)
treedc6a6058e3a8cdb72c3da086d23f68fe5df8b5d1 /ext2fs/ialloc.c
parent05c3ffac543052c8d0b171a5f77bb977d5316a61 (diff)
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.
Diffstat (limited to 'ext2fs/ialloc.c')
-rw-r--r--ext2fs/ialloc.c8
1 files changed, 4 insertions, 4 deletions
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;
}