Whamcloud - gitweb
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 3ce0f4d..09a79b4 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 4228c6e..00149c8 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;