diff options
author | 2011-07-02 22:20:07 +0000 | |
---|---|---|
committer | 2011-07-02 22:20:07 +0000 | |
commit | b8d5a5fb3cd18b5becb179d749e65fc04a659093 (patch) | |
tree | a14bf2c9e20868318f34cb59c7793894408769bf /sys/dev/sequencer.c | |
parent | Per recommandation in the the sparc docs, use unlocked reads when (diff) | |
download | wireguard-openbsd-b8d5a5fb3cd18b5becb179d749e65fc04a659093.tar.xz wireguard-openbsd-b8d5a5fb3cd18b5becb179d749e65fc04a659093.zip |
kqueue attach functions should return an errno or 0, not a plain 1. Fix
the obvious cases to return EINVAL and ENXIO.
ok tedu deraadt
Diffstat (limited to 'sys/dev/sequencer.c')
-rw-r--r-- | sys/dev/sequencer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sequencer.c b/sys/dev/sequencer.c index 4f77257b76c..c50750cf05e 100644 --- a/sys/dev/sequencer.c +++ b/sys/dev/sequencer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sequencer.c,v 1.21 2011/06/23 16:02:33 tedu Exp $ */ +/* $OpenBSD: sequencer.c,v 1.22 2011/07/02 22:20:07 nicm Exp $ */ /* $NetBSD: sequencer.c,v 1.13 1998/11/25 22:17:07 augustss Exp $ */ /* @@ -618,7 +618,7 @@ sequencerpoll(dev_t dev, int events, struct proc *p) int sequencerkqfilter(dev_t dev, struct knote *kn) { - return (EPERM); + return (ENXIO); } void |