Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/dreamcast/dev Return ENOTTY rather than EINVAL for ...



details:   https://anonhg.NetBSD.org/src/rev/72058bc11dc2
branches:  trunk
changeset: 757488:72058bc11dc2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Sep 01 12:25:27 2010 +0000

description:
Return ENOTTY rather than EINVAL for unhandled ioctl(2)s.

diffstat:

 sys/arch/dreamcast/dev/gdrom.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2d061e25c04d -r 72058bc11dc2 sys/arch/dreamcast/dev/gdrom.c
--- a/sys/arch/dreamcast/dev/gdrom.c    Wed Sep 01 10:44:28 2010 +0000
+++ b/sys/arch/dreamcast/dev/gdrom.c    Wed Sep 01 12:25:27 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gdrom.c,v 1.28 2010/08/31 15:17:20 tsutsui Exp $       */
+/*     $NetBSD: gdrom.c,v 1.29 2010/09/01 12:25:27 tsutsui Exp $       */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.28 2010/08/31 15:17:20 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.29 2010/09/01 12:25:27 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -563,7 +563,7 @@
                return 0;
        }
        default:
-               return EINVAL;
+               return ENOTTY;
        }
 
 #ifdef DIAGNOSTIC



Home | Main Index | Thread Index | Old Index