diff options
author | Domen Puncer <domen@coderock.org> | 2005-06-25 17:58:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:25:02 -0400 |
commit | 23712b2fbf6b845289c1d41d929be0931fab2759 (patch) | |
tree | 86762105efe97aad9619ed3e4e2fe113dd0822f1 /lib | |
parent | ae49fe8655010616fa422273b34a1bfeaee57c1c (diff) |
[PATCH] lib/sha1.c: fix sparse warning
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sha1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sha1.c b/lib/sha1.c index 2f7f1148dfde..1cdabe3065f9 100644 --- a/lib/sha1.c +++ b/lib/sha1.c | |||
@@ -41,7 +41,7 @@ void sha_transform(__u32 *digest, const char *in, __u32 *W) | |||
41 | __u32 a, b, c, d, e, t, i; | 41 | __u32 a, b, c, d, e, t, i; |
42 | 42 | ||
43 | for (i = 0; i < 16; i++) | 43 | for (i = 0; i < 16; i++) |
44 | W[i] = be32_to_cpu(((const __u32 *)in)[i]); | 44 | W[i] = be32_to_cpu(((const __be32 *)in)[i]); |
45 | 45 | ||
46 | for (i = 0; i < 64; i++) | 46 | for (i = 0; i < 64; i++) |
47 | W[i+16] = rol32(W[i+13] ^ W[i+8] ^ W[i+2] ^ W[i], 1); | 47 | W[i+16] = rol32(W[i+13] ^ W[i+8] ^ W[i+2] ^ W[i], 1); |