summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-02-08 10:56:42 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-02-08 10:56:42 +0000
commitb84bf3d2ffbd5b07eae7202aa67205ee4465a6a1 (patch)
tree89f26c24cc1bcaeda6157d9d879a088734378830 /sys/dev
parent90ab77ccab4be96e56b8c39f8679e45593a1151c (diff)
Return ENOTTY not EINVAL for unsupported ioctl's;
ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_cas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_cas.c b/sys/dev/pci/if_cas.c
index 6f2a6f3e767..9da60e32921 100644
--- a/sys/dev/pci/if_cas.c
+++ b/sys/dev/pci/if_cas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cas.c,v 1.13 2008/01/17 21:27:02 kettenis Exp $ */
+/* $OpenBSD: if_cas.c,v 1.14 2008/02/08 10:56:41 thib Exp $ */
/*
*
@@ -1742,7 +1742,7 @@ cas_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
default:
- error = EINVAL;
+ error = ENOTTY;
break;
}