| 1 | From: Theodore Ts'o <tytso@mit.edu> |
| 2 | Date: Fri, 17 Dec 2010 03:11:43 +0000 (-0500) |
| 3 | Subject: libext2fs: Fix compile bug on big-endian architectures |
| 4 | X-Git-Url: http://git.kernel.org/?p=fs%2Fext2%2Fe2fsprogs.git;a=commitdiff_plain;h=9098c986b64bb65a2b7fcd2724a400ba1f451f6b |
| 5 | |
| 6 | libext2fs: Fix compile bug on big-endian architectures |
| 7 | |
| 8 | Addresses-Sourceforge-Bug: #3138115 |
| 9 | |
| 10 | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> |
| 11 | --- |
| 12 | |
| 13 | diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c |
| 14 | index 6f6cec2..12427e0 100644 |
| 15 | --- a/lib/ext2fs/swapfs.c |
| 16 | +++ b/lib/ext2fs/swapfs.c |
| 17 | @@ -72,7 +72,7 @@ void ext2fs_swap_super(struct ext2_super_block * sb) |
| 18 | sb->s_flags = ext2fs_swab32(sb->s_flags); |
| 19 | sb->s_kbytes_written = ext2fs_swab64(sb->s_kbytes_written); |
| 20 | sb->s_snapshot_inum = ext2fs_swab32(sb->s_snapshot_inum); |
| 21 | - sb->s_snapshot_id = ext2fs_swab32(s_snapshot_id); |
| 22 | + sb->s_snapshot_id = ext2fs_swab32(sb->s_snapshot_id); |
| 23 | sb->s_snapshot_r_blocks_count = |
| 24 | ext2fs_swab64(sb->s_snapshot_r_blocks_count); |
| 25 | sb->s_snapshot_list = ext2fs_swab32(sb->s_snapshot_list); |
| 26 | |
| 27 | |