diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-03 01:57:25 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-03 01:57:25 +0000 |
commit | b0c043bbed7ee35df4171d8551695c74458c8d97 (patch) | |
tree | 173e0171c3c09d353febba4938f1c9cdc39c248c | |
parent | 2e962e21c3032a41b283c41959aeadc15f63b1d4 (diff) | |
download | busybox-w32-b0c043bbed7ee35df4171d8551695c74458c8d97.tar.gz busybox-w32-b0c043bbed7ee35df4171d8551695c74458c8d97.tar.bz2 busybox-w32-b0c043bbed7ee35df4171d8551695c74458c8d97.zip |
extern variable declaration in a .c file is heresy - fixing it
git-svn-id: svn://busybox.net/trunk/busybox@17139 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 6 | ||||
-rw-r--r-- | archival/unzip.c | 3 | ||||
-rw-r--r-- | include/unarchive.h | 5 |
3 files changed, 9 insertions, 5 deletions
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 { | |||
45 | } v; | 45 | } v; |
46 | } huft_t; | 46 | } huft_t; |
47 | 47 | ||
48 | /* Globally-visible data */ | ||
49 | off_t gunzip_bytes_out; /* number of output bytes */ | ||
50 | uint32_t gunzip_crc; | ||
51 | |||
48 | static int gunzip_src_fd; | 52 | static int gunzip_src_fd; |
49 | unsigned int gunzip_bytes_out; /* number of output bytes */ | ||
50 | static unsigned int gunzip_outbuf_count; /* bytes in output buffer */ | 53 | static unsigned int gunzip_outbuf_count; /* bytes in output buffer */ |
51 | 54 | ||
52 | /* gunzip_window size--must be a power of two, and | 55 | /* gunzip_window size--must be a power of two, and |
@@ -55,7 +58,6 @@ enum { gunzip_wsize = 0x8000 }; | |||
55 | static unsigned char *gunzip_window; | 58 | static unsigned char *gunzip_window; |
56 | 59 | ||
57 | static uint32_t *gunzip_crc_table; | 60 | static uint32_t *gunzip_crc_table; |
58 | uint32_t gunzip_crc; | ||
59 | 61 | ||
60 | /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ | 62 | /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ |
61 | #define BMAX 16 /* maximum bit length of any code (16 for explode) */ | 63 | #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 @@ | |||
32 | #define ZIP_CDS_END_MAGIC SWAP_LE32(0x06054b50) | 32 | #define ZIP_CDS_END_MAGIC SWAP_LE32(0x06054b50) |
33 | #define ZIP_DD_MAGIC SWAP_LE32(0x08074b50) | 33 | #define ZIP_DD_MAGIC SWAP_LE32(0x08074b50) |
34 | 34 | ||
35 | extern unsigned int gunzip_crc; | ||
36 | extern unsigned int gunzip_bytes_out; | ||
37 | |||
38 | typedef union { | 35 | typedef union { |
39 | unsigned char raw[26]; | 36 | unsigned char raw[26]; |
40 | struct { | 37 | struct { |
diff --git a/include/unarchive.h b/include/unarchive.h index 88c00882c..843f68f73 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -64,6 +64,11 @@ typedef struct archive_handle_s { | |||
64 | 64 | ||
65 | } archive_handle_t; | 65 | } archive_handle_t; |
66 | 66 | ||
67 | |||
68 | extern uint32_t gunzip_crc; | ||
69 | extern off_t gunzip_bytes_out; | ||
70 | |||
71 | |||
67 | extern archive_handle_t *init_handle(void); | 72 | extern archive_handle_t *init_handle(void); |
68 | 73 | ||
69 | extern char filter_accept_all(archive_handle_t *archive_handle); | 74 | extern char filter_accept_all(archive_handle_t *archive_handle); |