Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/sunos32 PR 50517 bad switch



details:   https://anonhg.NetBSD.org/src/rev/a077e9d4fe53
branches:  trunk
changeset: 812328:a077e9d4fe53
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Fri Dec 11 08:10:43 2015 +0000

description:
PR 50517 bad switch

diffstat:

 sys/compat/sunos32/sunos32_ioctl.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 5c3bbaa63b4e -r a077e9d4fe53 sys/compat/sunos32/sunos32_ioctl.c
--- a/sys/compat/sunos32/sunos32_ioctl.c        Fri Dec 11 08:10:28 2015 +0000
+++ b/sys/compat/sunos32/sunos32_ioctl.c        Fri Dec 11 08:10:43 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunos32_ioctl.c,v 1.33 2015/12/08 20:36:14 christos Exp $      */
+/*     $NetBSD: sunos32_ioctl.c,v 1.34 2015/12/11 08:10:43 mlelstv Exp $       */
 /* from: NetBSD: sunos_ioctl.c,v 1.35 2001/02/03 22:20:02 mrg Exp      */
 
 /*
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos32_ioctl.c,v 1.33 2015/12/08 20:36:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_ioctl.c,v 1.34 2015/12/11 08:10:43 mlelstv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd32.h"
@@ -846,9 +846,9 @@
            {
                int tmp = 0;
                switch ((intptr_t)SCARG_P32(uap, data)) {
-               case SUNOS_S_FLUSHR:    tmp = FREAD;
-               case SUNOS_S_FLUSHW:    tmp = FWRITE;
-               case SUNOS_S_FLUSHRW:   tmp = FREAD|FWRITE;
+               case SUNOS_S_FLUSHR:    tmp = FREAD; break;
+               case SUNOS_S_FLUSHW:    tmp = FWRITE; break;
+               case SUNOS_S_FLUSHRW:   tmp = FREAD|FWRITE; break;
                }
                 return sunos32_do_ioctl(SCARG(&bsd_ua, fd), TIOCFLUSH, &tmp, l);
            }



Home | Main Index | Thread Index | Old Index