mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 11:22:43 +00:00
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);
|
||||
if (av[0]) {
|
||||
execvp(av[0], av);
|
||||
warn(av[0]);
|
||||
warn("%s", av[0]);
|
||||
} else {
|
||||
execl(shell, shell, "-i", NULL);
|
||||
warn(shell);
|
||||
warn("%s", shell);
|
||||
}
|
||||
fail();
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ process(file)
|
||||
} else {
|
||||
soee = fopen(file, "r");
|
||||
if (soee == NULL) {
|
||||
warn(file);
|
||||
warn("%s", file);
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user