Skip to contentSkip to conversation

crypto/sha512.c: fix sparse warnings

PATCH In review [email protected] 1 participant 2 messages Mar 19, 2005 – Mar 20, 2005 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 crypto/sha512.c: fix sparse warnings

---

 kj-domen/crypto/sha512.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
crypto/sha512.c renamed from crypto/sha512.c~sparse-crypto_sha512 +1 -1
diff -puN crypto/sha512.c~sparse-crypto_sha512 crypto/sha512.c
@@ -105,7 +105,7 @@ static const u64 sha512_K[80] = {
 
 static inline void LOAD_OP(int I, u64 *W, const u8 *input)
 {
-	W[I] = __be64_to_cpu( ((u64*)(input))[I] );
+	W[I] = __be64_to_cpu( ((__be64*)(input))[I] );
 }
 
 static inline void BLEND_OP(int I, u64 *W)

_

#1 lore raw

---

 kj-domen/crypto/sha512.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
crypto/sha512.c renamed from crypto/sha512.c~sparse-crypto_sha512 +1 -1
diff -puN crypto/sha512.c~sparse-crypto_sha512 crypto/sha512.c
@@ -105,7 +105,7 @@ static const u64 sha512_K[80] = {
 
 static inline void LOAD_OP(int I, u64 *W, const u8 *input)
 {
-	W[I] = __be64_to_cpu( ((u64*)(input))[I] );
+	W[I] = __be64_to_cpu( ((__be64*)(input))[I] );
 }
 
 static inline void BLEND_OP(int I, u64 *W)

_