summaryrefslogtreecommitdiff
path: root/archival/gunzip.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-11-07 06:52:13 +0000
committerEric Andersen <andersen@codepoet.org>2000-11-07 06:52:13 +0000
commit63a862272cc5c0cc8e15c8d95dfb9e8944eb944e (patch)
tree7540b55fa5eaf6f2c271a89017822c1626371a63 /archival/gunzip.c
parenteb69ead09102ef9cb404a4b3e72b6615321b49e6 (diff)
downloadbusybox-w32-63a862272cc5c0cc8e15c8d95dfb9e8944eb944e.tar.gz
busybox-w32-63a862272cc5c0cc8e15c8d95dfb9e8944eb944e.tar.bz2
busybox-w32-63a862272cc5c0cc8e15c8d95dfb9e8944eb944e.zip
Cleanup of duplicated symbols -- found by compiling with
LDFLAGS += -Wl,-warn-common
Diffstat (limited to 'archival/gunzip.c')
-rw-r--r--archival/gunzip.c44
1 files changed, 20 insertions, 24 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 0c9d40670..1ff3c40fb 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -155,32 +155,28 @@ typedef unsigned short ush;
155typedef unsigned long ulg; 155typedef unsigned long ulg;
156typedef int file_t; /* Do not use stdio */ 156typedef int file_t; /* Do not use stdio */
157 157
158uch *inbuf; 158static uch *inbuf;
159uch *outbuf; 159static uch *outbuf;
160ush *d_buf; 160static ush *d_buf;
161uch *window; 161static uch *window;
162ush *tab_prefix0; 162static ush *tab_prefix0;
163ush *tab_prefix1; 163static ush *tab_prefix1;
164 164
165/* local variables */ 165/* local variables */
166int test_mode = 0; /* check file integrity option */ 166static int test_mode = 0; /* check file integrity option */
167int foreground; /* set if program run in foreground */ 167static int foreground; /* set if program run in foreground */
168int maxbits = BITS; /* max bits per code for LZW */ 168static int method = DEFLATED; /* compression method */
169int method = DEFLATED; /* compression method */ 169static int exit_code = OK; /* program exit code */
170int exit_code = OK; /* program exit code */ 170static int last_member; /* set for .zip and .Z files */
171int last_member; /* set for .zip and .Z files */ 171static int part_nb; /* number of parts in .gz file */
172int part_nb; /* number of parts in .gz file */ 172static long ifile_size; /* input file size, -1 for devices (debug only) */
173long ifile_size; /* input file size, -1 for devices (debug only) */ 173static long bytes_in; /* number of input bytes */
174long bytes_in; /* number of input bytes */ 174static long bytes_out; /* number of output bytes */
175long bytes_out; /* number of output bytes */ 175static int ifd; /* input file descriptor */
176long total_in = 0; /* input bytes for all files */ 176static int ofd; /* output file descriptor */
177long total_out = 0; /* output bytes for all files */ 177static unsigned insize; /* valid bytes in inbuf */
178struct stat istat; /* status for input file */ 178static unsigned inptr; /* index of next byte to be processed in inbuf */
179int ifd; /* input file descriptor */ 179static unsigned outcnt; /* bytes in output buffer */
180int ofd; /* output file descriptor */
181unsigned insize; /* valid bytes in inbuf */
182unsigned inptr; /* index of next byte to be processed in inbuf */
183unsigned outcnt; /* bytes in output buffer */
184 180
185unsigned hufts; /* track memory usage */ 181unsigned hufts; /* track memory usage */
186ulg bb; /* bit buffer */ 182ulg bb; /* bit buffer */