summaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authornakayama <nakayama@NetBSD.org>2003-05-08 13:46:50 +0000
committernakayama <nakayama@NetBSD.org>2003-05-08 13:46:50 +0000
commitbbdab699701bb7fbe2ee5358298ea6d375fa29c6 (patch)
tree63020f61214029077fbc2769307e702ce4988947 /sys/miscfs
parent9dbe78f13667a020e4d752e33a9dd97481034e28 (diff)
Add breaks which were forgotten in rev. 1.2 change.
Inspired from a report by HIRATSUKA Kouichirou in tech-pkg-ja mailing list.
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/procfs/procfs_fd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_fd.c b/sys/miscfs/procfs/procfs_fd.c
index ac1b6c7fc6d..1c789231e5f 100644
--- a/sys/miscfs/procfs/procfs_fd.c
+++ b/sys/miscfs/procfs/procfs_fd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_fd.c,v 1.2 2003/04/17 19:04:25 jdolecek Exp $ */
+/* $NetBSD: procfs_fd.c,v 1.3 2003/05/08 13:46:50 nakayama Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_fd.c,v 1.2 2003/04/17 19:04:25 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_fd.c,v 1.3 2003/05/08 13:46:50 nakayama Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -70,8 +70,10 @@ procfs_dofd(curp, p, pfs, uio)
switch (uio->uio_rw) {
case UIO_READ:
error = (*fp->f_ops->fo_read)(fp, &offs, uio, curp->p_ucred, 0);
+ break;
case UIO_WRITE:
error = (*fp->f_ops->fo_write)(fp, &offs, uio, curp->p_ucred,0);
+ break;
default:
panic("bad uio op");
}