From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Dickson Subject: [PATCH 10/24] Removed warnings from nfsstat.c Date: Wed, 4 Aug 2010 11:12:06 -0400 Message-ID: <1280934740-11366-11-git-send-email-steved@redhat.com> References: <1280934740-11366-1-git-send-email-steved@redhat.com> To: Linux NFS Mailing list Return-path: Received: from 4dicksons.org ([207.22.49.45]:45181 "EHLO Dobby.Home.4dicksons.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754727Ab0HDPvT (ORCPT ); Wed, 4 Aug 2010 11:51:19 -0400 Received: from tophat.home.4dicksons.org ([192.168.62.20]) by Dobby.Home.4dicksons.org with esmtp (Exim 4.63) (envelope-from ) id 1Ogfdm-0002SZ-V4 for linux-nfs@vger.kernel.org; Wed, 04 Aug 2010 11:12:23 -0400 In-Reply-To: <1280934740-11366-1-git-send-email-steved@redhat.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: nfsstat.c: In function 'print_callstats': nfsstat.c:797: warning: comparison between signed and unsigned integer expressions nfsstat.c:801: warning: comparison between signed and unsigned integer expressions nfsstat.c:802: warning: comparison between signed and unsigned integer expressions nfsstat.c:805: warning: comparison between signed and unsigned integer expressions nfsstat.c: In function 'print_callstats_list': nfsstat.c:821: warning: comparison between signed and unsigned integer expressions nfsstat.c:828: warning: comparison between signed and unsigned integer expressions nfsstat.c: In function 'unpause': nfsstat.c:1111: warning: unused parameter 'sig' Signed-off-by: Steve Dickson --- utils/nfsstat/nfsstat.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/nfsstat/nfsstat.c b/utils/nfsstat/nfsstat.c index 99d77c9..740a803 100644 --- a/utils/nfsstat/nfsstat.c +++ b/utils/nfsstat/nfsstat.c @@ -791,7 +791,7 @@ print_callstats(const char *hdr, const char **names, { unsigned long long total; unsigned long long pct; - int i, j; + unsigned int i, j; fputs(hdr, stdout); for (i = 0, total = 0; i < nr; i++) @@ -816,7 +816,7 @@ print_callstats_list(const char *hdr, const char **names, unsigned int *callinfo, unsigned int nr) { unsigned long long calltotal; - int i; + unsigned int i; for (i = 0, calltotal = 0; i < nr; i++) { calltotal += callinfo[i]; @@ -1118,7 +1118,7 @@ unpause(int sig) time_diff = difftime(endtime, starttime); minutes = time_diff / 60; seconds = (int)time_diff % 60; - printf("Signal received; displaying (only) statistics gathered over the last %d minutes, %d seconds:\n\n", minutes, seconds); + printf("Signal %d received; displaying (only) statistics gathered over the last %d minutes, %d seconds:\n\n", sig, minutes, seconds); } static void -- 1.7.2