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/midi.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/midi.c')
| -rw-r--r-- | sys/dev/midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c index ae6644e50e9..d0fb2bb9a5c 100644 --- a/sys/dev/midi.c +++ b/sys/dev/midi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.25 2011/01/27 20:37:19 ratchov Exp $ */ +/* $OpenBSD: midi.c,v 1.26 2011/07/02 22:20:07 nicm Exp $ */ /* * Copyright (c) 2003, 2004 Alexandre Ratchov @@ -401,7 +401,7 @@ midikqfilter(dev_t dev, struct knote *kn) kn->kn_fop = &midiwrite_filtops; break; default: - return (EPERM); + return (EINVAL); } kn->kn_hook = (void *)sc; |
