* [patch 7/8] lib/sha1.c: fix sparse warning
@ 2005-04-08 7:51 domen
0 siblings, 0 replies; only message in thread
From: domen @ 2005-04-08 7:51 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, domen, adobriyan
Fix
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>
---
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
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-08 8:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-08 7:51 [patch 7/8] lib/sha1.c: fix sparse warning domen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox