[patch 7/8] lib/sha1.c: fix sparse warning

From: domen
Date: Fri Apr 08 2005 - 03:35:47 EST




Fix

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

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxx>
Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>
---


kj-domen/lib/sha1.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN lib/sha1.c~sparse-lib_sha1 lib/sha1.c
--- kj/lib/sha1.c~sparse-lib_sha1 2005-04-05 12:58:04.000000000 +0200
+++ kj-domen/lib/sha1.c 2005-04-05 12:58:04.000000000 +0200
@@ -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);
diff -L lib/sha1.c.orig -puN /dev/null /dev/null
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/