]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Avoid the use of the Objective-C reserved name "id".
authorMark Adler <madler@alumni.caltech.edu>
Mon, 30 Jan 2012 01:44:04 +0000 (17:44 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Mon, 30 Jan 2012 05:15:24 +0000 (21:15 -0800)
inflate.c

index cc89517bc893a59bcc3cc4b5d30e18955961d399..0885c1d268704d7680ec862596e25f98ce8ec0a0 100644 (file)
--- a/inflate.c
+++ b/inflate.c
@@ -1275,7 +1275,7 @@ const Bytef *dictionary;
 uInt dictLength;
 {
     struct inflate_state FAR *state;
-    unsigned long id;
+    unsigned long dictid;
     unsigned char *next;
     unsigned avail;
     int ret;
@@ -1286,11 +1286,11 @@ uInt dictLength;
     if (state->wrap != 0 && state->mode != DICT)
         return Z_STREAM_ERROR;
 
-    /* check for correct dictionary id */
+    /* check for correct dictionary identifier */
     if (state->mode == DICT) {
-        id = adler32(0L, Z_NULL, 0);
-        id = adler32(id, dictionary, dictLength);
-        if (id != state->check)
+        dictid = adler32(0L, Z_NULL, 0);
+        dictid = adler32(dictid, dictionary, dictLength);
+        if (dictid != state->check)
             return Z_DATA_ERROR;
     }