diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/gzip.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index 9411e17a9..68f1cc87d 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -235,7 +235,7 @@ enum { | |||
235 | }; | 235 | }; |
236 | 236 | ||
237 | 237 | ||
238 | struct global1 { | 238 | struct globals { |
239 | 239 | ||
240 | lng block_start; | 240 | lng block_start; |
241 | 241 | ||
@@ -343,7 +343,6 @@ struct global1 { | |||
343 | uint32_t crc; /* shift register contents */ | 343 | uint32_t crc; /* shift register contents */ |
344 | }; | 344 | }; |
345 | 345 | ||
346 | extern struct global1 *ptr_to_globals; | ||
347 | #define G1 (*(ptr_to_globals - 1)) | 346 | #define G1 (*(ptr_to_globals - 1)) |
348 | 347 | ||
349 | 348 | ||
@@ -869,7 +868,7 @@ typedef struct tree_desc { | |||
869 | int max_code; /* largest code with non zero frequency */ | 868 | int max_code; /* largest code with non zero frequency */ |
870 | } tree_desc; | 869 | } tree_desc; |
871 | 870 | ||
872 | struct global2 { | 871 | struct globals2 { |
873 | 872 | ||
874 | ush heap[HEAP_SIZE]; /* heap used to build the Huffman trees */ | 873 | ush heap[HEAP_SIZE]; /* heap used to build the Huffman trees */ |
875 | int heap_len; /* number of elements in the heap */ | 874 | int heap_len; /* number of elements in the heap */ |
@@ -956,7 +955,7 @@ struct global2 { | |||
956 | ulg compressed_len; /* total bit length of compressed file */ | 955 | ulg compressed_len; /* total bit length of compressed file */ |
957 | }; | 956 | }; |
958 | 957 | ||
959 | #define G2ptr ((struct global2*)(ptr_to_globals)) | 958 | #define G2ptr ((struct globals2*)(ptr_to_globals)) |
960 | #define G2 (*G2ptr) | 959 | #define G2 (*G2ptr) |
961 | 960 | ||
962 | 961 | ||
@@ -2048,7 +2047,7 @@ int gzip_main(int argc, char **argv) | |||
2048 | } | 2047 | } |
2049 | #endif | 2048 | #endif |
2050 | 2049 | ||
2051 | ptr_to_globals = xzalloc(sizeof(struct global1) + sizeof(struct global2)); | 2050 | ptr_to_globals = xzalloc(sizeof(struct globals) + sizeof(struct globals2)); |
2052 | ptr_to_globals++; | 2051 | ptr_to_globals++; |
2053 | G2.l_desc.dyn_tree = G2.dyn_ltree; | 2052 | G2.l_desc.dyn_tree = G2.dyn_ltree; |
2054 | G2.l_desc.static_tree = G2.static_ltree; | 2053 | G2.l_desc.static_tree = G2.static_ltree; |