summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2020-02-20 16:56:51 +0000
committervisa <visa@openbsd.org>2020-02-20 16:56:51 +0000
commitb821368957f060d7b1e9eeaa4fbc563e892edb32 (patch)
treee229216622f7fd44cb4f4a093037e2375da5f54b /sys/kern/tty.c
parentdocument no debug (diff)
downloadwireguard-openbsd-b821368957f060d7b1e9eeaa4fbc563e892edb32.tar.xz
wireguard-openbsd-b821368957f060d7b1e9eeaa4fbc563e892edb32.zip
Replace field f_isfd with field f_flags in struct filterops to allow
adding more filter properties without cluttering the struct. OK mpi@, anton@
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 2e02e126dc8..0b72a0042db 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.152 2020/02/08 14:52:07 visa Exp $ */
+/* $OpenBSD: tty.c,v 1.153 2020/02/20 16:56:52 visa Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -1090,14 +1090,14 @@ ttpoll(dev_t device, int events, struct proc *p)
}
const struct filterops ttyread_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_ttyrdetach,
.f_event = filt_ttyread,
};
const struct filterops ttywrite_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_ttywdetach,
.f_event = filt_ttywrite,