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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62988
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;