From: Theodore Ts'o Date: Sun, 21 May 2006 23:26:45 +0000 (-0400) Subject: Fix type warning problem with sizeof() in ext2fs_open2() X-Git-Tag: E2FSPROGS-1_39~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f93ffdc48f19bed280931b00e41039ee696637;p=thirdparty%2Fe2fsprogs.git Fix type warning problem with sizeof() in ext2fs_open2() Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index 3ce0f4dc7..09a79b4ee 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 4228c6ed1..00149c80b 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;