aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-08-22 19:31:35 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-08-22 19:31:35 +0000
commit4534af276360675b6058e3b255a0d63f7f8c0c96 (patch)
treedcab210ad7ddbd3ed7f5b3a511d6ef3217310539 /archival/libunarchive
parent0775a07d87e0c6bd467a61f5457e99ba20ac99ac (diff)
downloadbusybox-4534af276360675b6058e3b255a0d63f7f8c0c96.tar.gz
replace some global const ints with defines
Diffstat (limited to 'archival/libunarchive')
-rw-r--r--archival/libunarchive/decompress_unzip.c8
-rw-r--r--archival/libunarchive/unzip.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index 76fb86285..0da60c3be 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -81,17 +81,17 @@ static unsigned long *crc_table;
static unsigned long crc; /* shift register contents */
/* Return codes from gzip */
-static const int ERROR = 1;
+#define ERROR 1
/*
* window size--must be a power of two, and
* at least 32K for zip's deflate method
*/
-static const int WSIZE = 0x8000;
+#define WSIZE 0x8000
/* If BMAX needs to be larger than 16, then h and x[] should be ulg. */
-static const int BMAX = 16; /* maximum bit length of any code (16 for explode) */
-static const int N_MAX = 288; /* maximum number of codes in any set */
+#define BMAX 16 /* maximum bit length of any code (16 for explode) */
+#define N_MAX 288 /* maximum number of codes in any set */
static long bytes_out; /* number of output bytes */
static unsigned long outcnt; /* bytes in output buffer */
diff --git a/archival/libunarchive/unzip.c b/archival/libunarchive/unzip.c
index 76fb86285..0da60c3be 100644
--- a/archival/libunarchive/unzip.c
+++ b/archival/libunarchive/unzip.c
@@ -81,17 +81,17 @@ static unsigned long *crc_table;
static unsigned long crc; /* shift register contents */
/* Return codes from gzip */
-static const int ERROR = 1;
+#define ERROR 1
/*
* window size--must be a power of two, and
* at least 32K for zip's deflate method
*/
-static const int WSIZE = 0x8000;
+#define WSIZE 0x8000
/* If BMAX needs to be larger than 16, then h and x[] should be ulg. */
-static const int BMAX = 16; /* maximum bit length of any code (16 for explode) */
-static const int N_MAX = 288; /* maximum number of codes in any set */
+#define BMAX 16 /* maximum bit length of any code (16 for explode) */
+#define N_MAX 288 /* maximum number of codes in any set */
static long bytes_out; /* number of output bytes */
static unsigned long outcnt; /* bytes in output buffer */