diff options
author | Rob Landley <rob@landley.net> | 2006-03-04 22:40:25 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-04 22:40:25 +0000 |
commit | 688ed0d7606c0563073f588098b9bedf904c70a9 (patch) | |
tree | 123b85ec83aede5c1323d95297dc6d67f3b9e1f5 /archival/libunarchive | |
parent | d9969ea175503bdd37fdc966a0ed38bb6f81ff89 (diff) | |
download | busybox-w32-688ed0d7606c0563073f588098b9bedf904c70a9.tar.gz busybox-w32-688ed0d7606c0563073f588098b9bedf904c70a9.tar.bz2 busybox-w32-688ed0d7606c0563073f588098b9bedf904c70a9.zip |
Patch from Robert P. Day, moving byte order checks to use platform.h macros.
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/decompress_unlzma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/decompress_unlzma.c b/archival/libunarchive/decompress_unlzma.c index 62811ddfc..9c53e0a56 100644 --- a/archival/libunarchive/decompress_unlzma.c +++ b/archival/libunarchive/decompress_unlzma.c | |||
@@ -119,10 +119,10 @@ int unlzma(int src_fd, int dst_fd) | |||
119 | pos_state_mask = (1 << pb) - 1; | 119 | pos_state_mask = (1 << pb) - 1; |
120 | literal_pos_mask = (1 << lp) - 1; | 120 | literal_pos_mask = (1 << lp) - 1; |
121 | 121 | ||
122 | #if __BYTE_ORDER == __BIG_ENDIAN | 122 | #if BB_BIG_ENDIAN |
123 | header.dict_size = bswap_32(header.dict_size); | 123 | header.dict_size = bswap_32(header.dict_size); |
124 | header.dst_size = bswap_64(header.dst_size); | 124 | header.dst_size = bswap_64(header.dst_size); |
125 | #endif /* __BYTE_ORDER */ | 125 | #endif |
126 | 126 | ||
127 | if (header.dict_size == 0) | 127 | if (header.dict_size == 0) |
128 | header.dict_size = 1; | 128 | header.dict_size = 1; |