diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-06-12 09:34:18 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-06-12 09:34:18 +0000 |
commit | 02840211393a0f114b7a94723255ddbde4ed5142 (patch) | |
tree | a9e543099351ac7bcc18d155edd8a4fc5d271562 /sys/kern/kern_event.c | |
parent | 040ce6eac8aa22e0ebead0c6cfdb59763328eafb (diff) |
Revert addition of double underbars for filter-specific flag.
Port breakages reported by naddy@
Diffstat (limited to 'sys/kern/kern_event.c')
-rw-r--r-- | sys/kern/kern_event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 936237fd0bd..bafc8f11418 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_event.c,v 1.135 2020/06/11 09:18:43 mpi Exp $ */ +/* $OpenBSD: kern_event.c,v 1.136 2020/06/12 09:34:17 mpi Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -268,10 +268,10 @@ filt_procattach(struct knote *kn) /* * internal flag indicating registration done by kernel */ - if (kn->kn_flags & __EV_FLAG1) { + if (kn->kn_flags & EV_FLAG1) { kn->kn_data = kn->kn_sdata; /* ppid */ kn->kn_fflags = NOTE_CHILD; - kn->kn_flags &= ~__EV_FLAG1; + kn->kn_flags &= ~EV_FLAG1; } /* XXX lock the proc here while adding to the list? */ @@ -348,7 +348,7 @@ filt_proc(struct knote *kn, long hint) memset(&kev, 0, sizeof(kev)); kev.ident = hint & NOTE_PDATAMASK; /* pid */ kev.filter = kn->kn_filter; - kev.flags = kn->kn_flags | EV_ADD | EV_ENABLE | __EV_FLAG1; + kev.flags = kn->kn_flags | EV_ADD | EV_ENABLE | EV_FLAG1; kev.fflags = kn->kn_sfflags; kev.data = kn->kn_id; /* parent */ kev.udata = kn->kn_kevent.udata; /* preserve udata */ |