diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-16 00:58:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-16 00:58:11 +0200 |
commit | 8dc0e1929e3af3b1673e5a8e486808386400c020 (patch) | |
tree | 0550684999338af8f15de76c5599f9dead3fdfd6 /archival | |
parent | f2c184be835fbcbd04d06fce22783c6a5d37b563 (diff) | |
download | busybox-w32-8dc0e1929e3af3b1673e5a8e486808386400c020.tar.gz busybox-w32-8dc0e1929e3af3b1673e5a8e486808386400c020.tar.bz2 busybox-w32-8dc0e1929e3af3b1673e5a8e486808386400c020.zip |
use PACKED macro insted of open-coding GCC-ism
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival')
-rw-r--r-- | archival/libunarchive/decompress_unlzma.c | 2 | ||||
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/decompress_unlzma.c b/archival/libunarchive/decompress_unlzma.c index 4478cd2e3..ecda17481 100644 --- a/archival/libunarchive/decompress_unlzma.c +++ b/archival/libunarchive/decompress_unlzma.c | |||
@@ -156,7 +156,7 @@ typedef struct { | |||
156 | uint8_t pos; | 156 | uint8_t pos; |
157 | uint32_t dict_size; | 157 | uint32_t dict_size; |
158 | uint64_t dst_size; | 158 | uint64_t dst_size; |
159 | } __attribute__ ((packed)) lzma_header_t; | 159 | } PACKED lzma_header_t; |
160 | 160 | ||
161 | 161 | ||
162 | /* #defines will force compiler to compute/optimize each one with each usage. | 162 | /* #defines will force compiler to compute/optimize each one with each usage. |
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index b090f26eb..c571ab438 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c | |||
@@ -1117,7 +1117,7 @@ static int check_header_gzip(STATE_PARAM unpack_info_t *info) | |||
1117 | uint32_t mtime; | 1117 | uint32_t mtime; |
1118 | uint8_t xtra_flags_UNUSED; | 1118 | uint8_t xtra_flags_UNUSED; |
1119 | uint8_t os_flags_UNUSED; | 1119 | uint8_t os_flags_UNUSED; |
1120 | } __attribute__((packed)) formatted; | 1120 | } PACKED formatted; |
1121 | } header; | 1121 | } header; |
1122 | struct BUG_header { | 1122 | struct BUG_header { |
1123 | char BUG_header[sizeof(header) == 8 ? 1 : -1]; | 1123 | char BUG_header[sizeof(header) == 8 ? 1 : -1]; |