summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-04-23 17:30:57 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-04-23 17:30:57 +0000
commitb4388296ede25c20a6d6c831cafbf8ff99007196 (patch)
tree55998146e211899c84a512d1969f68b03c9afb32 /sys/kern
parent3b57556e840a96a97409af8f14246205cc99c465 (diff)
KNF
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_vnops.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 17fd874d989..98630835acb 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_vnops.c,v 1.48 2005/12/04 19:04:13 pedro Exp $ */
+/* $OpenBSD: vfs_vnops.c,v 1.49 2006/04/23 17:30:56 pedro Exp $ */
/* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */
/*
@@ -179,10 +179,16 @@ vn_writechk(struct vnode *vp)
*/
if (vp->v_mount->mnt_flag & MNT_RDONLY) {
switch (vp->v_type) {
- case VREG: case VDIR: case VLNK:
+ case VREG:
+ case VDIR:
+ case VLNK:
return (EROFS);
- case VNON: case VCHR: case VSOCK:
- case VFIFO: case VBAD: case VBLK:
+ case VNON:
+ case VCHR:
+ case VSOCK:
+ case VFIFO:
+ case VBAD:
+ case VBLK:
break;
}
}