diff options
author | markm <markm@FreeBSD.org> | 2002-09-21 17:28:17 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-09-21 17:28:17 +0000 |
commit | 40044052d8ec7b4c490491d39902efbf7a0b68a1 (patch) | |
tree | 0d349b574a3bdd79b1caef11fd8b6616dfb51800 /sys/dev/null | |
parent | fb29191f96ca76cd2dba182bfe87f64ee0ba2d14 (diff) | |
download | FreeBSD-src-40044052d8ec7b4c490491d39902efbf7a0b68a1.zip FreeBSD-src-40044052d8ec7b4c490491d39902efbf7a0b68a1.tar.gz |
Everywhere else, an argument passed to a device containing flags
is called "flags". Make it so here.
Diffstat (limited to 'sys/dev/null')
-rw-r--r-- | sys/dev/null/null.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/null/null.c b/sys/dev/null/null.c index 0df9329..908e533 100644 --- a/sys/dev/null/null.c +++ b/sys/dev/null/null.c @@ -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; |