From 9cc9fb410777526def4f80ff1537f29048389ae1 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 3 Oct 2008 19:56:25 +0000 Subject: Return ENOTTY for unknown ioctl's. --- sys/dev/ic/midway.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/midway.c b/sys/dev/ic/midway.c index 1bcaef7a029..08269686b07 100644 --- a/sys/dev/ic/midway.c +++ b/sys/dev/ic/midway.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midway.c,v 1.37 2006/03/25 22:41:43 djm Exp $ */ +/* $OpenBSD: midway.c,v 1.38 2008/10/03 19:56:24 brad Exp $ */ /* (sync'd to midway.c 1.68) */ /* @@ -1166,7 +1166,7 @@ caddr_t data; break; default: - error = EINVAL; + error = ENOTTY; break; } splx(s); -- cgit v1.2.3