Skip to contentSkip to conversation

lib/sha1.c: fix sparse warning

PATCH New Alexey Dobriyan 1 participant 1 message Mar 23, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/sha1.c: fix sparse warning

Fix

lib/sha1.c:44:10: warning: cast to restricted type

lib/sha1.c renamed from lib/sha1.c.orig +1 -1
@@ -41,7 +41,7 @@ void sha_transform(__u32 *digest, const 
 	__u32 a, b, c, d, e, t, i;
 
 	for (i = 0; i < 16; i++)
-		W[i] = be32_to_cpu(((const __u32 *)in)[i]);
+		W[i] = be32_to_cpu(((const __be32 *)in)[i]);
 
 	for (i = 0; i < 64; i++)
 		W[i+16] = rol32(W[i+13] ^ W[i+8] ^ W[i+2] ^ W[i], 1);

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors