mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-27 03:54:19 +08:00
libext2fs: fix build failure in swapfs.c on big-endian systems
Addresses-Debian-Bug: #886119 Reported-by: James Clarke <jrtc27@debian.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
965e82cb61
commit
876d9b0c8e
@ -19,6 +19,7 @@
|
||||
|
||||
#include "ext2_fs.h"
|
||||
#include "ext2fs.h"
|
||||
#include "ext2fsP.h"
|
||||
#include <ext2fs/ext2_ext_attr.h>
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
@ -358,7 +359,7 @@ void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t,
|
||||
if (inode_includes(inode_size, i_projid))
|
||||
t->i_projid = ext2fs_swab16(f->i_projid);
|
||||
/* catch new static fields added after i_projid */
|
||||
EXT2FS_BUILD_BUG_ON(sizeof(ext2_inode_large) != 160);
|
||||
EXT2FS_BUILD_BUG_ON(sizeof(struct ext2_inode_large) != 160);
|
||||
|
||||
i = sizeof(struct ext2_inode) + extra_isize + sizeof(__u32);
|
||||
if (bufsize < (int) i)
|
||||
|
Loading…
Reference in New Issue
Block a user