From eccb8fb7bed6d99bc3e2c0e8065700fdb059c64f Mon Sep 17 00:00:00 2001 From: lukem Date: Mon, 16 Mar 2009 00:43:33 +0000 Subject: WARNS=4 --- libexec/rpc.rstatd/rstat_proc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libexec/rpc.rstatd') 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; -- cgit