Fix two missing arguments detected by "-Wformat".
This commit is contained in:
parent
7bfd07097d
commit
fcde3651a7
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user