svn commit: trunk/busybox/archival
vda at busybox.net
vda at busybox.net
Sat Jan 6 01:27:24 UTC 2007
Author: vda
Date: 2007-01-05 17:27:24 -0800 (Fri, 05 Jan 2007)
New Revision: 17170
Log:
kill unused variable
Modified:
trunk/busybox/archival/gzip.c
Changeset:
Modified: trunk/busybox/archival/gzip.c
===================================================================
--- trunk/busybox/archival/gzip.c 2007-01-06 00:03:11 UTC (rev 17169)
+++ trunk/busybox/archival/gzip.c 2007-01-06 01:27:24 UTC (rev 17170)
@@ -100,13 +100,8 @@
#define tab_prefix prev /* hash link (see deflate.c) */
#define head (prev+WSIZE) /* hash head (see deflate.c) */
-static long bytes_in; /* number of input bytes */
+static long isize; /* number of input bytes */
-#define isize bytes_in
-/* for compatibility with old zip sources (to be cleaned) */
-
-typedef int file_t; /* Do not use stdio */
-
#define NO_FILE (-1) /* in memory compression */
@@ -193,7 +188,7 @@
static ulg flush_block(char *buf, ulg stored_len, int eof);
/* from bits.c */
-static void bi_init(file_t zipfile);
+static void bi_init(int zipfile);
static void send_bits(int value, int length);
static unsigned bi_reverse(unsigned value, int length);
static void bi_windup(void);
@@ -311,7 +306,7 @@
#ifdef DEBUG
insize = 0;
#endif
- bytes_in = 0L;
+ isize = 0L;
}
/* ===========================================================================
@@ -409,7 +404,7 @@
* Local data used by the "bit string" routines.
*/
-static file_t zfile; /* output gzip file */
+static int zfile; /* output gzip file */
static unsigned short bi_buf;
@@ -433,7 +428,7 @@
/* ===========================================================================
* Initialize the bit string routines.
*/
-static void bi_init(file_t zipfile)
+static void bi_init(int zipfile)
{
zfile = zipfile;
bi_buf = 0;
@@ -2379,7 +2374,6 @@
static uint32_t crc; /* crc on uncompressed file data */
-static long header_bytes; /* number of bytes in gzip header */
static void put_long(ulg n)
{
@@ -2427,14 +2421,11 @@
put_byte((uch) deflate_flags); /* extra flags */
put_byte(OS_CODE); /* OS identifier */
- header_bytes = (long) outcnt;
-
(void) deflate();
/* Write the crc and uncompressed size */
put_long(crc);
put_long(isize);
- header_bytes += 2 * sizeof(long);
flush_outbuf();
return OK;
More information about the busybox-cvs
mailing list