Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Return ENOTTY, not EINVAL, when the ioctl command is...
details: https://anonhg.NetBSD.org/src/rev/4e6366367d25
branches: trunk
changeset: 772131:4e6366367d25
user: apb <apb%NetBSD.org@localhost>
date: Mon Dec 19 21:44:08 2011 +0000
description:
Return ENOTTY, not EINVAL, when the ioctl command is unrecognised.
diffstat:
sys/dev/rndpseudo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 5f1ecb09b406 -r 4e6366367d25 sys/dev/rndpseudo.c
--- a/sys/dev/rndpseudo.c Mon Dec 19 19:39:51 2011 +0000
+++ b/sys/dev/rndpseudo.c Mon Dec 19 21:44:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rndpseudo.c,v 1.2 2011/12/19 11:10:08 drochner Exp $ */
+/* $NetBSD: rndpseudo.c,v 1.3 2011/12/19 21:44:08 apb Exp $ */
/*-
* Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.2 2011/12/19 11:10:08 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.3 2011/12/19 21:44:08 apb Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -428,7 +428,7 @@
break;
default:
- return (EINVAL);
+ return (ENOTTY);
}
switch (cmd) {
@@ -597,7 +597,7 @@
break;
default:
- return (EINVAL);
+ return (ENOTTY);
}
return (ret);
Home |
Main Index |
Thread Index |
Old Index