summaryrefslogtreecommitdiffstats
path: root/sys/dev/midi.c
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2002-01-10 18:49:07 +0000
committermickey <mickey@openbsd.org>2002-01-10 18:49:07 +0000
commit4c4a5ebcb88702159ef1e14d18f320847c681451 (patch)
tree05013ce4a0b28de0d3a54d50b782adbd8389bc85 /sys/dev/midi.c
parentcheck if device was opened for writing for modifying ops, also it's enotty not einval; from Vladimir Popov <jumbo@narod.ru> and me (diff)
downloadwireguard-openbsd-4c4a5ebcb88702159ef1e14d18f320847c681451.tar.xz
wireguard-openbsd-4c4a5ebcb88702159ef1e14d18f320847c681451.zip
return ENOTTY not EINVAL in default: in *ioctl()
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 4506f8dd87e..cf83da528ec 100644
--- a/sys/dev/midi.c
+++ b/sys/dev/midi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midi.c,v 1.6 2001/03/23 00:13:23 mickey Exp $ */
+/* $OpenBSD: midi.c,v 1.7 2002/01/10 18:49:07 mickey Exp $ */
/* $NetBSD: midi.c,v 1.10 1998/12/20 14:26:44 drochner Exp $ */
/*
@@ -688,7 +688,7 @@ midiioctl(dev, cmd, addr, flag, p)
if (hw->ioctl)
error = hw->ioctl(sc->hw_hdl, cmd, addr, flag, p);
else
- error = EINVAL;
+ error = ENOTTY;
break;
}
return (error);