diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-06 01:27:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-06 01:27:24 +0000 |
commit | da98165ad60179b12eccae91ea06825afa9bc257 (patch) | |
tree | 212616b7f0f0d6edba377f6cf4a5fb5ffde7a1e0 | |
parent | c7a4aa5c9921c8725a3fdd6b12ef87835a755139 (diff) | |
download | busybox-w32-da98165ad60179b12eccae91ea06825afa9bc257.tar.gz busybox-w32-da98165ad60179b12eccae91ea06825afa9bc257.tar.bz2 busybox-w32-da98165ad60179b12eccae91ea06825afa9bc257.zip |
kill unused variable
-rw-r--r-- | archival/gzip.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index c0671c187..b8a448435 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -100,12 +100,7 @@ typedef unsigned long ulg; | |||
100 | #define tab_prefix prev /* hash link (see deflate.c) */ | 100 | #define tab_prefix prev /* hash link (see deflate.c) */ |
101 | #define head (prev+WSIZE) /* hash head (see deflate.c) */ | 101 | #define head (prev+WSIZE) /* hash head (see deflate.c) */ |
102 | 102 | ||
103 | static long bytes_in; /* number of input bytes */ | 103 | static long isize; /* number of input bytes */ |
104 | |||
105 | #define isize bytes_in | ||
106 | /* for compatibility with old zip sources (to be cleaned) */ | ||
107 | |||
108 | typedef int file_t; /* Do not use stdio */ | ||
109 | 104 | ||
110 | #define NO_FILE (-1) /* in memory compression */ | 105 | #define NO_FILE (-1) /* in memory compression */ |
111 | 106 | ||
@@ -193,7 +188,7 @@ static int ct_tally(int dist, int lc); | |||
193 | static ulg flush_block(char *buf, ulg stored_len, int eof); | 188 | static ulg flush_block(char *buf, ulg stored_len, int eof); |
194 | 189 | ||
195 | /* from bits.c */ | 190 | /* from bits.c */ |
196 | static void bi_init(file_t zipfile); | 191 | static void bi_init(int zipfile); |
197 | static void send_bits(int value, int length); | 192 | static void send_bits(int value, int length); |
198 | static unsigned bi_reverse(unsigned value, int length); | 193 | static unsigned bi_reverse(unsigned value, int length); |
199 | static void bi_windup(void); | 194 | static void bi_windup(void); |
@@ -311,7 +306,7 @@ static void clear_bufs(void) | |||
311 | #ifdef DEBUG | 306 | #ifdef DEBUG |
312 | insize = 0; | 307 | insize = 0; |
313 | #endif | 308 | #endif |
314 | bytes_in = 0L; | 309 | isize = 0L; |
315 | } | 310 | } |
316 | 311 | ||
317 | /* =========================================================================== | 312 | /* =========================================================================== |
@@ -409,7 +404,7 @@ static uint32_t updcrc(uch * s, unsigned n) | |||
409 | * Local data used by the "bit string" routines. | 404 | * Local data used by the "bit string" routines. |
410 | */ | 405 | */ |
411 | 406 | ||
412 | static file_t zfile; /* output gzip file */ | 407 | static int zfile; /* output gzip file */ |
413 | 408 | ||
414 | static unsigned short bi_buf; | 409 | static unsigned short bi_buf; |
415 | 410 | ||
@@ -433,7 +428,7 @@ ulg bits_sent; /* bit length of the compressed data */ | |||
433 | /* =========================================================================== | 428 | /* =========================================================================== |
434 | * Initialize the bit string routines. | 429 | * Initialize the bit string routines. |
435 | */ | 430 | */ |
436 | static void bi_init(file_t zipfile) | 431 | static void bi_init(int zipfile) |
437 | { | 432 | { |
438 | zfile = zipfile; | 433 | zfile = zipfile; |
439 | bi_buf = 0; | 434 | bi_buf = 0; |
@@ -2379,7 +2374,6 @@ static void set_file_type(void) | |||
2379 | 2374 | ||
2380 | 2375 | ||
2381 | static uint32_t crc; /* crc on uncompressed file data */ | 2376 | static uint32_t crc; /* crc on uncompressed file data */ |
2382 | static long header_bytes; /* number of bytes in gzip header */ | ||
2383 | 2377 | ||
2384 | static void put_long(ulg n) | 2378 | static void put_long(ulg n) |
2385 | { | 2379 | { |
@@ -2427,14 +2421,11 @@ static int zip(int in, int out) | |||
2427 | put_byte((uch) deflate_flags); /* extra flags */ | 2421 | put_byte((uch) deflate_flags); /* extra flags */ |
2428 | put_byte(OS_CODE); /* OS identifier */ | 2422 | put_byte(OS_CODE); /* OS identifier */ |
2429 | 2423 | ||
2430 | header_bytes = (long) outcnt; | ||
2431 | |||
2432 | (void) deflate(); | 2424 | (void) deflate(); |
2433 | 2425 | ||
2434 | /* Write the crc and uncompressed size */ | 2426 | /* Write the crc and uncompressed size */ |
2435 | put_long(crc); | 2427 | put_long(crc); |
2436 | put_long(isize); | 2428 | put_long(isize); |
2437 | header_bytes += 2 * sizeof(long); | ||
2438 | 2429 | ||
2439 | flush_outbuf(); | 2430 | flush_outbuf(); |
2440 | return OK; | 2431 | return OK; |