Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/sunos PR 50518 bad switch
details: https://anonhg.NetBSD.org/src/rev/9a1f690e69f8
branches: trunk
changeset: 342185:9a1f690e69f8
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Fri Dec 11 08:10:28 2015 +0000
description:
PR 50518 bad switch
diffstat:
sys/compat/sunos/sunos_ioctl.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r a80dc52d123d -r 9a1f690e69f8 sys/compat/sunos/sunos_ioctl.c
--- a/sys/compat/sunos/sunos_ioctl.c Fri Dec 11 08:08:01 2015 +0000
+++ b/sys/compat/sunos/sunos_ioctl.c Fri Dec 11 08:10:28 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_ioctl.c,v 1.64 2015/12/08 20:36:14 christos Exp $ */
+/* $NetBSD: sunos_ioctl.c,v 1.65 2015/12/11 08:10:28 mlelstv Exp $ */
/*
* Copyright (c) 1993 Markus Wild.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.64 2015/12/08 20:36:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.65 2015/12/11 08:10:28 mlelstv Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -817,9 +817,9 @@
{
int tmp = 0;
switch ((int)(u_long)SCARG(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;
}
error = (*ctl)(fp, TIOCFLUSH, &tmp);
break;
Home |
Main Index |
Thread Index |
Old Index