diff options
author | Steve Dickson <steved@redhat.com> | 2010-07-19 14:54:51 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-08-09 09:57:02 -0400 |
commit | 14becdb7bc23f075f786325f7e953c2f928fe385 (patch) | |
tree | 6fae47b00c68479159bdc42720fc58635f4d3c1d /utils/nfsstat/nfsstat.c | |
parent | b594ee2b2a1b9c0c5823a7af279488f113f91be4 (diff) | |
download | nfs-utils-14becdb7bc23f075f786325f7e953c2f928fe385.tar.gz nfs-utils-14becdb7bc23f075f786325f7e953c2f928fe385.tar.xz nfs-utils-14becdb7bc23f075f786325f7e953c2f928fe385.zip |
Removed warnings from nfsstat.c
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 <steved@redhat.com>
Diffstat (limited to 'utils/nfsstat/nfsstat.c')
-rw-r--r-- | 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 |