From 85f93ffdc48f19bed280931b00e41039ee696637 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 21 May 2006 19:26:45 -0400 Subject: [PATCH] Fix type warning problem with sizeof() in ext2fs_open2() Signed-off-by: "Theodore Ts'o" --- lib/ext2fs/ChangeLog | 4 ++++ lib/ext2fs/openfs.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index 3ce0f4d..09a79b4 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,3 +1,7 @@ +2006-05-21 Theodore Tso + + * openfs.c (ext2fs_open2): Fix type warning problem with sizeof() + 2006-05-12 Theodore Tso * alloc_tables.c (ext2fs_allocate_group_table): When allocating diff --git a/lib/ext2fs/openfs.c b/lib/ext2fs/openfs.c index 4228c6e..00149c8 100644 --- a/lib/ext2fs/openfs.c +++ b/lib/ext2fs/openfs.c @@ -133,7 +133,7 @@ errcode_t ext2fs_open2(const char *name, const char *io_options, if (retval) goto cleanup; retval = io_channel_read_blk(fs->io, 0, - -sizeof(struct ext2_image_hdr), + -(int)sizeof(struct ext2_image_hdr), fs->image_header); if (retval) goto cleanup; -- 1.8.3.1