diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-04-10 09:17:46 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-04-10 09:17:46 +0000 |
commit | f70f94eabd63dfc3141ba36d9aa0e6e343c2d51a (patch) | |
tree | 267a4d5e100e39b685ea83eefab371aa8a2c176f /sys/kern/kern_event.c | |
parent | 785625a1e62daf057e9a0d41de3f5b0a2f32663c (diff) |
Convert 'struct fileops' definitions to C99.
ok millert@, deraadt@, florian@
Diffstat (limited to 'sys/kern/kern_event.c')
-rw-r--r-- | sys/kern/kern_event.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index b9ec18e07e8..0fbef3a4271 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_event.c,v 1.86 2018/04/08 16:45:12 mikeb Exp $ */ +/* $OpenBSD: kern_event.c,v 1.87 2018/04/10 09:17:45 mpi Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -71,13 +71,13 @@ int kqueue_close(struct file *fp, struct proc *p); void kqueue_wakeup(struct kqueue *kq); struct fileops kqueueops = { - kqueue_read, - kqueue_write, - kqueue_ioctl, - kqueue_poll, - kqueue_kqfilter, - kqueue_stat, - kqueue_close + .fo_read = kqueue_read, + .fo_write = kqueue_write, + .fo_ioctl = kqueue_ioctl, + .fo_poll = kqueue_poll, + .fo_kqfilter = kqueue_kqfilter, + .fo_stat = kqueue_stat, + .fo_close = kqueue_close }; void knote_attach(struct knote *kn, struct filedesc *fdp); |