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

This commit is contained in:
kris 2000-07-12 00:50:15 +00:00
parent e39a2b5ca6
commit ce868049dc
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;