summaryrefslogtreecommitdiffstats
path: root/sys/dev/midi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/midi.c')
-rw-r--r--sys/dev/midi.c4
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;