aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/nfsiod/nfsiod.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-07-24 22:13:08 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-07-24 22:13:08 +0000
commitd5dd87c30423f1ee1322bc63099d802ed4d71906 (patch)
tree3945fc2cc570b1bbe8e083b15b4a1a3cc47552b9 /sbin/nfsiod/nfsiod.c
parentfed38951fd5f90f9dae84de2f5e9906c0cf2f5b4 (diff)
downloadsrc-d5dd87c30423f1ee1322bc63099d802ed4d71906.tar.gz
src-d5dd87c30423f1ee1322bc63099d802ed4d71906.zip
WARNS clean
Notes
Notes: svn path=/head/; revision=100635
Diffstat (limited to 'sbin/nfsiod/nfsiod.c')
-rw-r--r--sbin/nfsiod/nfsiod.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/nfsiod/nfsiod.c b/sbin/nfsiod/nfsiod.c
index 283132a026e4..547e238f3519 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 <sys/param.h>
#include <sys/syslog.h>
#include <sys/wait.h>
#include <sys/mount.h>
#include <sys/time.h>
+#include <sys/sysctl.h>
#include <err.h>
#include <stdio.h>
@@ -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);
}