From: Jim Meyering <[email protected]>
* unzip.c (LOCTIM): Comment out unused macro.
* deflate.c (EQUAL): Remove definition. Use "0" at sole point of use.
---
deflate.c | 5 +----
unzip.c | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/deflate.c b/deflate.c
index 3ba514d..3041864 100644
--- a/deflate.c
+++ b/deflate.c
@@ -251,9 +251,6 @@ local config configuration_table[10] = {
* meaning.
*/
-#define EQUAL 0
-/* result of memcmp for equal strings */
-
/* ===========================================================================
* Prototypes for local functions.
*/
@@ -500,7 +497,7 @@ local void check_match(start, match, length)
{
/* check that the match is indeed a match */
if (memcmp((char*)window + match,
- (char*)window + start, length) != EQUAL) {
+ (char*)window + start, length) != 0) {
fprintf(stderr,
" start %d, match %d, length %d\n",
start, match, length);
diff --git a/unzip.c b/unzip.c
index ceadbbc..a389e8a 100644
--- a/unzip.c
+++ b/unzip.c
@@ -39,7 +39,7 @@
#define CRPFLG 1 /* bit for encrypted entry */
#define EXTFLG 8 /* bit for extended local header */
#define LOCHOW 8 /* offset of compression method */
-#define LOCTIM 10 /* file mod time (for decryption) */
+/* #define LOCTIM 10 UNUSED file mod time (for decryption) */
#define LOCCRC 14 /* offset of crc */
#define LOCSIZ 18 /* offset of compressed size */
#define LOCLEN 22 /* offset of uncompressed length */
--
1.6.5.3.433.g11067