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 8472343..da40a62 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 7068de7..145cf31 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 582cd31..cbc6132 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 6f64e57..80e70f0 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)