summaryrefslogtreecommitdiff
path: root/usr.bin/nfsstat
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2009-04-12 23:34:11 +0000
committerlukem <lukem@NetBSD.org>2009-04-12 23:34:11 +0000
commitfc99e5ea7ca2ac4880b168cafdedf7400a97ef88 (patch)
tree77c7d90bd6530860f5ad41a663ff12d59e563e68 /usr.bin/nfsstat
parent510f6be6ed8968b913227a5d8a778974bc2cec1a (diff)
Fix -Wextra and -Wsign-compare issues
Diffstat (limited to 'usr.bin/nfsstat')
-rw-r--r--usr.bin/nfsstat/nfsstat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c
index 62b4c681b1c..9904991d5aa 100644
--- a/usr.bin/nfsstat/nfsstat.c
+++ b/usr.bin/nfsstat/nfsstat.c
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsstat.c,v 1.22 2008/07/21 14:19:24 lukem Exp $ */
+/* $NetBSD: nfsstat.c,v 1.23 2009/04/12 23:34:11 lukem Exp $ */
/*
* Copyright (c) 1983, 1989, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1993\
#if 0
static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: nfsstat.c,v 1.22 2008/07/21 14:19:24 lukem Exp $");
+__RCSID("$NetBSD: nfsstat.c,v 1.23 2009/04/12 23:34:11 lukem Exp $");
#endif
#endif /* not lint */
@@ -70,8 +70,8 @@ __RCSID("$NetBSD: nfsstat.c,v 1.22 2008/07/21 14:19:24 lukem Exp $");
struct nlist nl[] = {
#define N_NFSSTAT 0
- { "_nfsstats" },
- { "" },
+ { "_nfsstats", 0, 0, 0, 0 },
+ { "", 0, 0, 0, 0 },
};
#define MASK(a) (1 << NFSPROC_##a)
@@ -404,7 +404,7 @@ sidewaysintpr(interval)
memset(&last, 0, sizeof(last));
for (hdrcnt = 1;;) {
- int i;
+ size_t i;
if (!--hdrcnt) {
printhdr();
@@ -453,7 +453,7 @@ sidewaysintpr(interval)
void
printhdr()
{
- int i;
+ size_t i;
printf(" ");
for (i = 0; i < NSHORTPROC; i++)