Skip to content

Commit

Permalink
[PATCH] lib/sha1.c: fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Domen Puncer authored and Linus Torvalds committed Jun 25, 2005
1 parent ae49fe8 commit 23712b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 23712b2

Please sign in to comment.