]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/redboot/v2_0/src/fs/e2fs.c
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / redboot / v2_0 / src / fs / e2fs.c
index 3b37ede8f811257d7aeb12d663ca5a9a7cb654d4..e96b55a00821c5ff4901f18e66f1931aa3d52b49 100644 (file)
@@ -161,12 +161,12 @@ e2fs_mount(partition_t *part, e2fs_desc_t *e2fs)
 {
     int sb_block = 1;
     cyg_uint32  sb_buf[E2FS_MIN_BLOCK_SIZE/sizeof(cyg_uint32)];
-    struct e2fs_super_block *sb = (struct e2fs_super_block *)sb_buf;
+    struct e2fs_super_block *sb = (struct e2fs_super_block *)((void *)sb_buf);
 
     e2fs->part = part;
 
     if (!PARTITION_READ(part, sb_block*(E2FS_MIN_BLOCK_SIZE/SECTOR_SIZE),
-                       (cyg_uint32 *)sb, E2FS_MIN_BLOCK_SIZE/SECTOR_SIZE))
+                       sb_buf, E2FS_MIN_BLOCK_SIZE/SECTOR_SIZE))
        return -1;
 
     if (SWAB_LE16(sb->magic) != E2FS_SUPER_MAGIC) {