build: avoid warnings about unused macros
authorJim Meyering <meyering@redhat.com>
Fri, 20 Nov 2009 18:27:20 +0000 (19:27 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 20 Nov 2009 18:32:13 +0000 (19:32 +0100)
* unzip.c (LOCTIM): Comment out unused macro.
* deflate.c (EQUAL): Remove definition.  Use "0" at sole point of use.

deflate.c
unzip.c

index 3ba514d65c1a7025df0169ee39c56048976d25de..3041864985f20934dbaa01cc5802f00dc2bfc702 100644 (file)
--- 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 ceadbbc93b0926f3a5223dcc2b6b23c44fe7ef31..a389e8a15477a5562707643d4e83c1f87ba2e7f8 100644 (file)
--- 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 */