Fix warnings.
authorBen Laurie <ben@openssl.org>
Mon, 6 Sep 1999 09:29:29 +0000 (09:29 +0000)
committerBen Laurie <ben@openssl.org>
Mon, 6 Sep 1999 09:29:29 +0000 (09:29 +0000)
crypto/md5/md5_locl.h
crypto/ripemd/rmd_locl.h
crypto/ripemd/rmd_one.c
crypto/sha/sha_locl.h

index 84723439e03743f1568ac7f387562ff0a3ce7cbd..da40a6206b0175db0d9196e579b8fef33b07a281 100644 (file)
@@ -113,11 +113,11 @@ void md5_block_data_order (MD5_CTX *c, const void *p,int num);
 #define HASH_TRANSFORM         MD5_Transform
 #define HASH_FINAL             MD5_Final
 #define        HASH_MAKE_STRING(c,s)   do {    \
-       unsigned long l               \
-       l=(c)->A; HOST_l2c(l,(s));      \
-       l=(c)->B; HOST_l2c(l,(s));      \
-       l=(c)->C; HOST_l2c(l,(s));      \
-       l=(c)->D; HOST_l2c(l,(s));      \
+       unsigned long ll;               \
+       ll=(c)->A; HOST_l2c(ll,(s));    \
+       ll=(c)->B; HOST_l2c(ll,(s));    \
+       ll=(c)->C; HOST_l2c(ll,(s));    \
+       ll=(c)->D; HOST_l2c(ll,(s));    \
        } while (0)
 #define HASH_BLOCK_HOST_ORDER  md5_block_host_order
 #if !defined(L_ENDIAN) || defined(md5_block_data_order)
index 7068de711bc8919f1a9c1f4bc446d792bcb36d32..145cf316b9032564a9316bfe70a79c455cad851f 100644 (file)
@@ -95,12 +95,12 @@ void ripemd160_block_data_order (RIPEMD160_CTX *c, const void *p,int num);
 #define HASH_FINAL              RIPEMD160_Final
 #define HASH_BLOCK_HOST_ORDER   ripemd160_block_host_order
 #define        HASH_MAKE_STRING(c,s)   do {    \
-       unsigned long l               \
-       l=(c)->A; HOST_l2c(l,(s));      \
-       l=(c)->B; HOST_l2c(l,(s));      \
-       l=(c)->C; HOST_l2c(l,(s));      \
-       l=(c)->D; HOST_l2c(l,(s));      \
-       l=(c)->E; HOST_l2c(l,(s));      \
+       unsigned long ll;               \
+       ll=(c)->A; HOST_l2c(ll,(s));    \
+       ll=(c)->B; HOST_l2c(ll,(s));    \
+       ll=(c)->C; HOST_l2c(ll,(s));    \
+       ll=(c)->D; HOST_l2c(ll,(s));    \
+       ll=(c)->E; HOST_l2c(ll,(s));    \
        } while (0)
 #if !defined(L_ENDIAN) || defined(ripemd160_block_data_order)
 #define HASH_BLOCK_DATA_ORDER   ripemd160_block_data_order
index 582cd31e25aef4baf364a75c97fa53a10cc50594..cbc6132bc781e9a46b5e953bbcf4ea0a275041bd 100644 (file)
@@ -57,6 +57,7 @@
  */
 
 #include <stdio.h>
+#include <memory.h>
 #include <openssl/ripemd.h>
 
 unsigned char *RIPEMD160(unsigned char *d, unsigned long n,
index 6f64e57627570083938dfd1d81a4213ddfe7d90e..80e70f046f7e0be46fb92e3311c93b93c9b1283e 100644 (file)
 #define HASH_CBLOCK             SHA_CBLOCK
 #define HASH_LBLOCK             SHA_LBLOCK
 #define HASH_MAKE_STRING(c,s)   do {   \
-       unsigned long l               \
-       l=(c)->h0; HOST_l2c(l,(s));     \
-       l=(c)->h1; HOST_l2c(l,(s));     \
-       l=(c)->h2; HOST_l2c(l,(s));     \
-       l=(c)->h3; HOST_l2c(l,(s));     \
-       l=(c)->h4; HOST_l2c(l,(s));     \
+       unsigned long ll;               \
+       ll=(c)->h0; HOST_l2c(ll,(s));   \
+       ll=(c)->h1; HOST_l2c(ll,(s));   \
+       ll=(c)->h2; HOST_l2c(ll,(s));   \
+       ll=(c)->h3; HOST_l2c(ll,(s));   \
+       ll=(c)->h4; HOST_l2c(ll,(s));   \
        } while (0)
 
 #if defined(SHA_0)