summaryrefslogtreecommitdiffstats
path: root/sbin/nfsiod
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-11-18 03:22:08 +0000
committerjdp <jdp@FreeBSD.org>1997-11-18 03:22:08 +0000
commit92e669ae40b035c9fb2638711a8dc7d3ee85e666 (patch)
tree0a7d46b12b8139b4b746ff53dd4a87865cda5bcc /sbin/nfsiod
parentfcde3651a779b8d8d5facb85942b51cc473e6454 (diff)
downloadFreeBSD-src-92e669ae40b035c9fb2638711a8dc7d3ee85e666.zip
FreeBSD-src-92e669ae40b035c9fb2638711a8dc7d3ee85e666.tar.gz
Fix missing arguments detected by "-Wformat".
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 e2479fe..6ddb42a 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;
}
}
OpenPOWER on IntegriCloud