summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2009-03-16 00:43:33 +0000
committerlukem <lukem@NetBSD.org>2009-03-16 00:43:33 +0000
commiteccb8fb7bed6d99bc3e2c0e8065700fdb059c64f (patch)
tree9ceedb6e05a30dcac0621f8cfd7fdac32fd26d9f
parentbb15c5ac367efc3d0ecfee1e134b77b17e7ae055 (diff)
WARNS=4
-rw-r--r--libexec/rpc.rquotad/rquotad.c6
-rw-r--r--libexec/rpc.rstatd/rstat_proc.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/libexec/rpc.rquotad/rquotad.c b/libexec/rpc.rquotad/rquotad.c
index 58fb34640f6..8595146d399 100644
--- a/libexec/rpc.rquotad/rquotad.c
+++ b/libexec/rpc.rquotad/rquotad.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rquotad.c,v 1.23 2006/05/09 20:18:07 mrg Exp $ */
+/* $NetBSD: rquotad.c,v 1.24 2009/03/16 00:43:33 lukem Exp $ */
/*
* by Manuel Bouyer (bouyer@ensta.fr). Public domain.
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rquotad.c,v 1.23 2006/05/09 20:18:07 mrg Exp $");
+__RCSID("$NetBSD: rquotad.c,v 1.24 2009/03/16 00:43:33 lukem Exp $");
#endif
#include <sys/param.h>
@@ -56,7 +56,7 @@ struct fs_stat {
} fs_stat;
struct fs_stat *fs_begin = NULL;
-char *qfextension[] = INITQFNAMES;
+const char *qfextension[] = INITQFNAMES;
int from_inetd = 1;
void
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c
index 99291e4f490..bc27ff4a4a6 100644
--- a/libexec/rpc.rstatd/rstat_proc.c
+++ b/libexec/rpc.rstatd/rstat_proc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rstat_proc.c,v 1.43 2006/04/14 13:19:03 blymn Exp $ */
+/* $NetBSD: rstat_proc.c,v 1.44 2009/03/16 00:51:06 lukem Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
static char sccsid[] = "from: @(#)rpc.rstatd.c 1.1 86/09/25 Copyr 1984 Sun Micro";
static char sccsid[] = "from: @(#)rstat_proc.c 2.2 88/08/01 4.0 RPCSRC";
#else
-__RCSID("$NetBSD: rstat_proc.c,v 1.43 2006/04/14 13:19:03 blymn Exp $");
+__RCSID("$NetBSD: rstat_proc.c,v 1.44 2009/03/16 00:51:06 lukem Exp $");
#endif
#endif
@@ -96,15 +96,15 @@ int cp_xlat[CPUSTATES] = { CP_USER, CP_NICE, CP_SYS, CP_IDLE };
struct nlist nl[] = {
#define X_IFNET 0
- { "_ifnet" },
- { NULL },
+ { "_ifnet", 0, 0, 0, 0 },
+ { NULL, 0, 0, 0, 0 },
};
int hz;
char *memf = NULL, *nlistf = NULL;
struct ifnet_head ifnetq; /* chain of ethernet interfaces */
-int numintfs;
+unsigned int numintfs;
extern int from_inetd;
int sincelastreq = 0; /* number of alarms since last request */
@@ -197,7 +197,7 @@ void
updatestat(int dummy)
{
long off;
- int i;
+ unsigned int i;
size_t len;
int mib[2];
struct uvmexp_sysctl uvmexp;