Module Name:    src
Committed By:   apb
Date:           Mon Dec 19 21:44:08 UTC 2011

Modified Files:
        src/sys/dev: rndpseudo.c

Log Message:
Return ENOTTY, not EINVAL, when the ioctl command is unrecognised.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/rndpseudo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/rndpseudo.c
diff -u src/sys/dev/rndpseudo.c:1.2 src/sys/dev/rndpseudo.c:1.3
--- src/sys/dev/rndpseudo.c:1.2	Mon Dec 19 11:10:08 2011
+++ src/sys/dev/rndpseudo.c	Mon Dec 19 21:44:08 2011
@@ -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 @@ rnd_ioctl(struct file *fp, u_long cmd, v
 		break;
 
 	default:
-		return (EINVAL);
+		return (ENOTTY);
 	}
 
 	switch (cmd) {
@@ -597,7 +597,7 @@ rnd_ioctl(struct file *fp, u_long cmd, v
 		break;
 
 	default:
-		return (EINVAL);
+		return (ENOTTY);
 	}
 
 	return (ret);

Reply via email to