Don't call warn() with no format string.

This commit is contained in:
Kris Kennaway 2000-07-10 09:18:19 +00:00
parent 0c4d24a78f
commit b7ffba17f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62897
2 changed files with 3 additions and 3 deletions

View File

@ -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();
}

View File

@ -102,7 +102,7 @@ process(file)
} else {
soee = fopen(file, "r");
if (soee == NULL) {
warn(file);
warn("%s", file);
return(-1);
}
}