Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix the return value of logioctl() for unhandled io...



details:   https://anonhg.NetBSD.org/src/rev/f84a83541ce1
branches:  trunk
changeset: 526213:f84a83541ce1
user:      enami <enami%NetBSD.org@localhost>
date:      Sun Apr 28 04:13:51 2002 +0000

description:
Fix the return value of logioctl() for unhandled ioctl; return EPASSTHROUGH
instead of -1.  Fix suggested by Andrew Brown.

diffstat:

 sys/kern/subr_log.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 048206784fe1 -r f84a83541ce1 sys/kern/subr_log.c
--- a/sys/kern/subr_log.c       Sun Apr 28 02:34:53 2002 +0000
+++ b/sys/kern/subr_log.c       Sun Apr 28 04:13:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_log.c,v 1.21 2001/11/12 15:25:19 lukem Exp $      */
+/*     $NetBSD: subr_log.c,v 1.22 2002/04/28 04:13:51 enami Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_log.c,v 1.21 2001/11/12 15:25:19 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_log.c,v 1.22 2002/04/28 04:13:51 enami Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -276,7 +276,7 @@
                break;
 
        default:
-               return (-1);
+               return (EPASSTHROUGH);
        }
        return (0);
 }



Home | Main Index | Thread Index | Old Index