]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Fix type warning problem with sizeof() in ext2fs_open2()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 21 May 2006 23:26:45 +0000 (19:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 21 May 2006 23:26:45 +0000 (19:26 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ChangeLog
lib/ext2fs/openfs.c

index 3ce0f4dc77aa04d056ea79d4e80ca3229e5897d9..09a79b4eef0a1f77faa7b8f8b854661c2c1b01b4 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-21  Theodore Tso  <tytso@mit.edu>
+
+       * openfs.c (ext2fs_open2): Fix type warning problem with sizeof()
+
 2006-05-12  Theodore Tso  <tytso@mit.edu>
 
        * alloc_tables.c (ext2fs_allocate_group_table): When allocating
index 4228c6ed1caa246eb211099e0f2b302c53530f53..00149c80bdf5633e8968b059e4125aa2bba8c46a 100644 (file)
@@ -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;