Don't call warn() with no format string.
This commit is contained in:
parent
0c4d24a78f
commit
b7ffba17f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62897
@ -244,10 +244,10 @@ doshell(av)
|
|||||||
login_tty(slave);
|
login_tty(slave);
|
||||||
if (av[0]) {
|
if (av[0]) {
|
||||||
execvp(av[0], av);
|
execvp(av[0], av);
|
||||||
warn(av[0]);
|
warn("%s", av[0]);
|
||||||
} else {
|
} else {
|
||||||
execl(shell, shell, "-i", NULL);
|
execl(shell, shell, "-i", NULL);
|
||||||
warn(shell);
|
warn("%s", shell);
|
||||||
}
|
}
|
||||||
fail();
|
fail();
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ process(file)
|
|||||||
} else {
|
} else {
|
||||||
soee = fopen(file, "r");
|
soee = fopen(file, "r");
|
||||||
if (soee == NULL) {
|
if (soee == NULL) {
|
||||||
warn(file);
|
warn("%s", file);
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user