From 706c5bcb24a630e548f55406f5829208b24eb06e Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 24 Jul 2002 22:13:08 +0000 Subject: WARNS clean --- sbin/nfsiod/Makefile | 2 -- sbin/nfsiod/nfsiod.c | 11 ++++++----- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'sbin') diff --git a/sbin/nfsiod/Makefile b/sbin/nfsiod/Makefile index 042eb0c..47cd290 100644 --- a/sbin/nfsiod/Makefile +++ b/sbin/nfsiod/Makefile @@ -3,7 +3,5 @@ PROG= nfsiod MAN= nfsiod.8 -CFLAGS+=-DNFS -WARNS= 0 .include diff --git a/sbin/nfsiod/nfsiod.c b/sbin/nfsiod/nfsiod.c index 283132a..547e238 100644 --- a/sbin/nfsiod/nfsiod.c +++ b/sbin/nfsiod/nfsiod.c @@ -38,7 +38,7 @@ static const char copyright[] = "@(#) Copyright (c) 1989, 1993\n\ The Regents of the University of California. All rights reserved.\n"; -#endif not lint +#endif #ifndef lint #if 0 @@ -46,13 +46,14 @@ static char sccsid[] = "@(#)nfsiod.c 8.4 (Berkeley) 5/3/95"; #endif static const char rcsid[] = "$FreeBSD$"; -#endif not lint +#endif #include #include #include #include #include +#include #include #include @@ -71,11 +72,10 @@ usage(void) int main(int argc, char *argv[]) { - int ch, num_servers; + int ch; struct vfsconf vfc; int error; - unsigned int iodmin; - unsigned int iodmax; + unsigned int iodmin, iodmax, num_servers; size_t len; error = getvfsbyname("nfs", &vfc); @@ -137,5 +137,6 @@ main(int argc, char *argv[]) error = sysctlbyname("vfs.nfs.iodmax", NULL, 0, &iodmax, sizeof iodmax); if (error < 0) err(1, "sysctlbyname(\"vfs.nfs.iodmax\")"); + exit (0); } -- cgit v1.1