From patchwork Fri Dec 3 20:41:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Rees X-Patchwork-Id: 379071 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB3KeSZC003070 for ; Fri, 3 Dec 2010 20:41:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753788Ab0LCUlG (ORCPT ); Fri, 3 Dec 2010 15:41:06 -0500 Received: from magus.merit.edu ([198.108.1.13]:35480 "EHLO magus.merit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753721Ab0LCUlG (ORCPT ); Fri, 3 Dec 2010 15:41:06 -0500 Received: from localhost (localhost [127.0.0.1]) by magus.merit.edu (Postfix) with ESMTP id C708A225547; Fri, 3 Dec 2010 15:41:04 -0500 (EST) X-Virus-Scanned: amavisd-new at magus.merit.edu Received: from magus.merit.edu ([127.0.0.1]) by localhost (magus.merit.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2x4M+3K2ar+5; Fri, 3 Dec 2010 15:41:04 -0500 (EST) Received: from merit.edu (pietrapertosa.merit.edu [198.108.62.155]) by magus.merit.edu (Postfix) with ESMTPSA id 8077C225530; Fri, 3 Dec 2010 15:41:04 -0500 (EST) Date: Fri, 3 Dec 2010 15:41:03 -0500 From: Jim Rees To: Benny Halevy Cc: linux-nfs@vger.kernel.org, peter honeyman Subject: [PATCH 2/2] silence compiler warnings Message-ID: <20101203204103.GA9834@merit.edu> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Dec 2010 20:41:07 +0000 (UTC) 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;