Skip to contentSkip to conversation

libext2fs: fix build warning on Big Endian systems in closefs.c

PATCH New Theodore Ts'o 1 participant 1 message Jun 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libext2fs: fix build warning on Big Endian systems in closefs.c

---
 lib/ext2fs/closefs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/ext2fs/closefs.c +2 -2
index 76444c05..1d4d5b7f 100644
@@ -282,7 +282,7 @@ errcode_t ext2fs_flush2(ext2_filsys fs, int flags)
 	unsigned long	fs_state;
 	__u32		feature_incompat;
 	struct ext2_super_block *super_shadow = 0;
-	struct ext2_group_desc *group_shadow = 0;
+	struct opaque_ext2_group_desc *group_shadow = 0;
 #ifdef WORDS_BIGENDIAN
 	struct ext2_group_desc *gdp;
 	dgrp_t		j;
@@ -343,7 +343,7 @@ errcode_t ext2fs_flush2(ext2_filsys fs, int flags)
 	}
 #else
 	super_shadow = fs->super;
-	group_shadow = ext2fs_group_desc(fs, fs->group_desc, 0);
+	group_shadow = fs->group_desc;
 #endif
 
 	/*
Signature · 1 line
2.11.0.rc0.7.gbe5a750