From: Jim Rees <rees@umich.edu>
To: Benny Halevy <bhalevy@panasas.com>
Cc: linux-nfs@vger.kernel.org, peter honeyman <honey@citi.umich.edu>
Subject: [PATCH 2/2] silence compiler warnings
Date: Fri, 3 Dec 2010 15:41:03 -0500 [thread overview]
Message-ID: <20101203204103.GA9834@merit.edu> (raw)
Signed-off-by: Jim Rees <rees@umich.edu>
---
utils/blkmapd/device-process.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/utils/blkmapd/device-process.c b/utils/blkmapd/device-process.c
index 0d8705f..91b0afc 100644
--- a/utils/blkmapd/device-process.c
+++ b/utils/blkmapd/device-process.c
@@ -53,14 +53,13 @@ static char *pretty_sig(char *sig, uint32_t siglen)
{
static char rs[100];
uint64_t sigval;
+ unsigned int i;
if (siglen <= sizeof(sigval)) {
- int i;
-
sigval = 0;
for (i = 0; i < siglen; i++)
sigval |= ((unsigned char *)sig)[i] << (i * 8);
- sprintf(rs, "0x%0llx", sigval);
+ sprintf(rs, "0x%0llx", (unsigned long long) sigval);
} else {
if (siglen > sizeof rs - 4) {
siglen = sizeof rs - 4;
--
1.7.1
next reply other threads:[~2010-12-03 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-03 20:41 Jim Rees [this message]
2010-12-09 11:03 ` [PATCH 2/2] silence compiler warnings Benny Halevy
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=20101203204103.GA9834@merit.edu \
--to=rees@umich.edu \
--cc=bhalevy@panasas.com \
--cc=honey@citi.umich.edu \
--cc=linux-nfs@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;
as well as URLs for NNTP newsgroup(s).