Fix shadow warning from 0.9.8-stable.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 14 Dec 2007 19:45:28 +0000 (19:45 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 14 Dec 2007 19:45:28 +0000 (19:45 +0000)
crypto/sha/sha256.c

index e5b8d8d2b131d2d5d8080fd0be392c9f50fa5e2c..223d80f82c51aede800dc87506690344dc0b3656 100644 (file)
@@ -91,21 +91,21 @@ int SHA224_Final (unsigned char *md, SHA256_CTX *c)
  */
 #define        HASH_MAKE_STRING(c,s)   do {    \
        unsigned long ll;               \
-       unsigned int  n;                \
+       unsigned int  xn;               \
        switch ((c)->md_len)            \
        {   case SHA224_DIGEST_LENGTH:  \
-               for (n=0;n<SHA224_DIGEST_LENGTH/4;n++)  \
-               {   ll=(c)->h[n]; HOST_l2c(ll,(s));   } \
+               for (xn=0;xn<SHA224_DIGEST_LENGTH/4;xn++)       \
+               {   ll=(c)->h[xn]; HOST_l2c(ll,(s));   }        \
                break;                  \
            case SHA256_DIGEST_LENGTH:  \
-               for (n=0;n<SHA256_DIGEST_LENGTH/4;n++)  \
-               {   ll=(c)->h[n]; HOST_l2c(ll,(s));   } \
+               for (xn=0;xn<SHA256_DIGEST_LENGTH/4;xn++)       \
+               {   ll=(c)->h[xn]; HOST_l2c(ll,(s));   }        \
                break;                  \
            default:                    \
                if ((c)->md_len > SHA256_DIGEST_LENGTH) \
                    return 0;                           \
-               for (n=0;n<(c)->md_len/4;n++)           \
-               {   ll=(c)->h[n]; HOST_l2c(ll,(s));   } \
+               for (xn=0;xn<(c)->md_len/4;xn++)                \
+               {   ll=(c)->h[xn]; HOST_l2c(ll,(s));   }        \
                break;                  \
        }                               \
        } while (0)