From: domen@coderock.org
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, domen@coderock.org, adobriyan@mail.ru
Subject: [patch 7/8] lib/sha1.c: fix sparse warning
Date: Fri, 08 Apr 2005 09:51:10 +0200 [thread overview]
Message-ID: <20050408075111.4B9271F3A4@trashy.coderock.org> (raw)
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
_
reply other threads:[~2005-04-08 8:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050408075111.4B9271F3A4@trashy.coderock.org \
--to=domen@coderock.org \
--cc=adobriyan@mail.ru \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox