]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] lib/sha1.c: fix sparse warning
authorDomen Puncer <domen@coderock.org>
Sat, 25 Jun 2005 21:58:58 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:25:02 +0000 (16:25 -0700)
lib/sha1.c:44:10: warning: cast to restricted type

Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/sha1.c

index 2f7f1148dfde3379921d54f44b5b41c4d167390a..1cdabe3065f932d1edde271b2421ce6844ccb84c 100644 (file)
@@ -41,7 +41,7 @@ void sha_transform(__u32 *digest, const char *in, __u32 *W)
        __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);