aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/nfsiod
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-11-18 03:22:08 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-11-18 03:22:08 +0000
commita960972dd035f7ab242e5f096157c8bc4b92a8e6 (patch)
treeb2ac0765e33272367ee3ce6feb32ba0dac2b8d83 /sbin/nfsiod
parent3e83b874e1cd746591e7b2addd5b4d4b1c7c3e47 (diff)
downloadsrc-a960972dd035f7ab242e5f096157c8bc4b92a8e6.tar.gz
src-a960972dd035f7ab242e5f096157c8bc4b92a8e6.zip
Fix missing arguments detected by "-Wformat".
Notes
Notes: svn path=/head/; revision=31208
Diffstat (limited to 'sbin/nfsiod')
-rw-r--r--sbin/nfsiod/nfsiod.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/nfsiod/nfsiod.c b/sbin/nfsiod/nfsiod.c
index e2479fe2ed55..6ddb42a6b5eb 100644
--- a/sbin/nfsiod/nfsiod.c
+++ b/sbin/nfsiod/nfsiod.c
@@ -108,7 +108,7 @@ main(argc, argv)
num_servers = atoi(optarg);
if (num_servers < 1 || num_servers > MAXNFSDCNT) {
warnx("nfsiod count %d; reset to %d",
- DEFNFSDCNT);
+ num_servers, DEFNFSDCNT);
num_servers = DEFNFSDCNT;
}
break;
@@ -128,7 +128,8 @@ main(argc, argv)
if (argc == 1) {
num_servers = atoi(argv[0]);
if (num_servers < 1 || num_servers > MAXNFSDCNT) {
- warnx("nfsiod count %d; reset to %d", DEFNFSDCNT);
+ warnx("nfsiod count %d; reset to %d", num_servers,
+ DEFNFSDCNT);
num_servers = DEFNFSDCNT;
}
}