Don't call warn() without a format string.
This commit is contained in:
parent
e39a2b5ca6
commit
ce868049dc
@ -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