From bb3d0fab3b46d64e93687bc30b405d0878eca296 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 3 Jan 2007 01:57:25 +0000 Subject: extern variable declaration in a .c file is heresy - fixing it --- archival/libunarchive/decompress_unzip.c | 6 ++++-- archival/unzip.c | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'archival') diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index 09f89e25c..83261de6d 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c @@ -45,8 +45,11 @@ typedef struct huft_s { } v; } huft_t; +/* Globally-visible data */ +off_t gunzip_bytes_out; /* number of output bytes */ +uint32_t gunzip_crc; + static int gunzip_src_fd; -unsigned int gunzip_bytes_out; /* number of output bytes */ static unsigned int gunzip_outbuf_count; /* bytes in output buffer */ /* gunzip_window size--must be a power of two, and @@ -55,7 +58,6 @@ enum { gunzip_wsize = 0x8000 }; static unsigned char *gunzip_window; static uint32_t *gunzip_crc_table; -uint32_t gunzip_crc; /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ #define BMAX 16 /* maximum bit length of any code (16 for explode) */ diff --git a/archival/unzip.c b/archival/unzip.c index 570789427..34a3a8519 100644 --- a/archival/unzip.c +++ b/archival/unzip.c @@ -32,9 +32,6 @@ #define ZIP_CDS_END_MAGIC SWAP_LE32(0x06054b50) #define ZIP_DD_MAGIC SWAP_LE32(0x08074b50) -extern unsigned int gunzip_crc; -extern unsigned int gunzip_bytes_out; - typedef union { unsigned char raw[26]; struct { -- cgit v1.2.3