summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-09-28 22:22:53 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-09-28 22:22:53 +0000
commit478413ac11fe30e251dd9314457dcaa055e052c9 (patch)
tree1c7546c60410568236904f79eb6aedadeed4985a /sys/kern
parentd5a91c65197b315467e552000e07aef613959bcb (diff)
Cast enum to u_int when doing a bounds check to avoid a clang warning that
the comparison is always true. ok jca@, tedu@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 6cda25874bf..ca142dccf76 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.253 2016/09/16 03:21:16 dlg Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.254 2016/09/28 22:22:52 kettenis Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -2162,8 +2162,9 @@ vfs_vnode_print(void *v, int full,
struct vnode *vp = v;
(*pr)("tag %s(%d) type %s(%d) mount %p typedata %p\n",
- vp->v_tag >= nitems(vtags)? "<unk>":vtags[vp->v_tag], vp->v_tag,
- vp->v_type >= nitems(vtypes)? "<unk>":vtypes[vp->v_type],
+ (u_int)vp->v_tag >= nitems(vtags)? "<unk>":vtags[vp->v_tag],
+ vp->v_tag,
+ (u_int)vp->v_type >= nitems(vtypes)? "<unk>":vtypes[vp->v_type],
vp->v_type, vp->v_mount, vp->v_mountedhere);
(*pr)("data %p usecount %d writecount %d holdcnt %d numoutput %d\n",