Everywhere else, an argument passed to a device containing flags

is called "flags". Make it so here.
This commit is contained in:
Mark Murray 2002-09-21 17:28:17 +00:00
parent 6563eb85ee
commit 963b82c64c

View File

@ -88,28 +88,27 @@ static struct cdevsw zero_cdevsw = {
static void *zbuf;
static int
null_write(dev_t dev, struct uio *uio, int flag)
null_write(dev_t dev, struct uio *uio, int flags)
{
uio->uio_resid = 0;
return 0;
}
static int
null_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
null_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td)
{
int error;
if (cmd != DIOCSKERNELDUMP)
return (noioctl(dev, cmd, data, fflag, td));
return (noioctl(dev, cmd, data, flags, td));
error = suser(td);
if (error)
return (error);
return (set_dumper(NULL));
}
static int
zero_read(dev_t dev, struct uio *uio, int flag)
zero_read(dev_t dev, struct uio *uio, int flags)
{
u_int c;
int error = 0;