Fix two missing arguments detected by "-Wformat".

This commit is contained in:
jdp 1997-11-18 03:14:53 +00:00
parent 7bfd07097d
commit fcde3651a7
2 changed files with 8 additions and 4 deletions

View File

@ -199,7 +199,8 @@ main(argc, argv, envp)
case 'n':
nfsdcnt = atoi(optarg);
if (nfsdcnt < 1 || nfsdcnt > MAXNFSDCNT) {
warnx("nfsd count %d; reset to %d", DEFNFSDCNT);
warnx("nfsd count %d; reset to %d", nfsdcnt,
DEFNFSDCNT);
nfsdcnt = DEFNFSDCNT;
}
break;
@ -243,7 +244,8 @@ main(argc, argv, envp)
if (argc == 1) {
nfsdcnt = atoi(argv[0]);
if (nfsdcnt < 1 || nfsdcnt > MAXNFSDCNT) {
warnx("nfsd count %d; reset to %d", DEFNFSDCNT);
warnx("nfsd count %d; reset to %d", nfsdcnt,
DEFNFSDCNT);
nfsdcnt = DEFNFSDCNT;
}
}

View File

@ -199,7 +199,8 @@ main(argc, argv, envp)
case 'n':
nfsdcnt = atoi(optarg);
if (nfsdcnt < 1 || nfsdcnt > MAXNFSDCNT) {
warnx("nfsd count %d; reset to %d", DEFNFSDCNT);
warnx("nfsd count %d; reset to %d", nfsdcnt,
DEFNFSDCNT);
nfsdcnt = DEFNFSDCNT;
}
break;
@ -243,7 +244,8 @@ main(argc, argv, envp)
if (argc == 1) {
nfsdcnt = atoi(argv[0]);
if (nfsdcnt < 1 || nfsdcnt > MAXNFSDCNT) {
warnx("nfsd count %d; reset to %d", DEFNFSDCNT);
warnx("nfsd count %d; reset to %d", nfsdcnt,
DEFNFSDCNT);
nfsdcnt = DEFNFSDCNT;
}
}