Whamcloud - gitweb
e2undo: fix endian issues
authorEric Sandeen <sandeen@redhat.com>
Thu, 16 Jun 2016 22:51:04 +0000 (17:51 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Jun 2016 03:10:40 +0000 (23:10 -0400)
commit32bf36dc0f40151fdc4179af16000828c1591022
tree681bfa578e69db3b290b898d0a26049c0d068aad
parent5eca88c1dcb1b378997d2a38699856624a1681e4
e2undo: fix endian issues

Two new e2undo issues exist in the latest release on big endian
machines.

From sparse check:

undo_io.c:157:26: warning: invalid assignment: |=
undo_io.c:157:26:    left side has type restricted __le32
undo_io.c:157:26:    right side has type int
undo_io.c:161:26: warning: invalid assignment: &=
undo_io.c:161:26:    left side has type restricted __le32
undo_io.c:161:26:    right side has type int

e2undo.c:211:16: warning: cast to restricted __le64
e2undo.c:211:16: warning: cast from restricted blk64_t
e2undo.c:212:16: warning: cast to restricted __le64
e2undo.c:212:16: warning: cast from restricted blk64_t

Addresses-RedHat-Bugzilla: 1344636
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/undo_io.c
misc/e2undo.c