Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Avoid returning -1 from ffb_ioctl() - w...



details:   https://anonhg.NetBSD.org/src/rev/fc80be109e80
branches:  trunk
changeset: 580546:fc80be109e80
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Apr 29 08:38:33 2005 +0000

description:
Avoid returning -1 from ffb_ioctl() - we want EPASSTHROUGH or EIO.

diffstat:

 sys/arch/sparc64/dev/ffb.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 95852cab67d0 -r fc80be109e80 sys/arch/sparc64/dev/ffb.c
--- a/sys/arch/sparc64/dev/ffb.c        Fri Apr 29 02:10:20 2005 +0000
+++ b/sys/arch/sparc64/dev/ffb.c        Fri Apr 29 08:38:33 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffb.c,v 1.8 2004/07/19 01:04:35 heas Exp $     */
+/*     $NetBSD: ffb.c,v 1.9 2005/04/29 08:38:33 martin Exp $   */
 /*     $OpenBSD: creator.c,v 1.20 2002/07/30 19:48:15 jason Exp $      */
 
 /*
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.8 2004/07/19 01:04:35 heas Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.9 2005/04/29 08:38:33 martin Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -252,8 +252,9 @@
        case WSDISPLAYIO_GCURMAX:
        case WSDISPLAYIO_GCURSOR:
        case WSDISPLAYIO_SCURSOR:
+               return EIO; /* not supported yet */
        default:
-               return -1; /* not supported yet */
+               return EPASSTHROUGH;
         }
 
        return (0);



Home | Main Index | Thread Index | Old Index