Don't call warn() without a format string.

This commit is contained in:
Kris Kennaway 2000-07-12 00:50:15 +00:00
parent 2b2b44c983
commit 0e0b415c72
3 changed files with 3 additions and 3 deletions

View File

@ -250,7 +250,7 @@ pw_error(name, err, eval)
extern int _use_yp;
#endif /* YP */
if (err)
warn(name);
warn("%s", name);
#ifdef YP
if (_use_yp)
warnx("NIS information unchanged");

View File

@ -250,7 +250,7 @@ pw_error(name, err, eval)
extern int _use_yp;
#endif /* YP */
if (err)
warn(name);
warn("%s", name);
#ifdef YP
if (_use_yp)
warnx("NIS information unchanged");

View File

@ -317,7 +317,7 @@ config(vnp)
rdev = rawdevice(dev);
f = fopen(rdev, "rw");
if (f == NULL) {
warn(dev);
warn("%s", dev);
return(1);
}
vnio.vn_file = file;