Don't call warn() without a format string.
This commit is contained in:
parent
2b2b44c983
commit
0e0b415c72
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user