Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b69b7
)
libext2fs: Fix big-endian bug in tst_csum.c
author
Theodore Ts'o
<tytso@mit.edu>
Tue, 1 Apr 2008 21:03:00 +0000
(17:03 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 1 Apr 2008 21:03:00 +0000
(17:03 -0400)
It's not necessary to byte-swap the checksum.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/tst_csum.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/tst_csum.c
b/lib/ext2fs/tst_csum.c
index
efeeb0a
..
eb7377d
100644
(file)
--- a/
lib/ext2fs/tst_csum.c
+++ b/
lib/ext2fs/tst_csum.c
@@
-80,9
+80,6
@@
main(int argc, char **argv)
csum1 = ext2fs_group_desc_csum(fs, 0);
print_csum("csum0000", fs, 0);
-#ifdef WORDS_BIGENDIAN
- csum_known = ext2fs_swab16(known);
-#endif
if (csum1 != csum_known) {
printf("checksum for group 0 should be %04x\n", csum_known);
exit(1);