-/* $OpenBSD: pstat.c,v 1.106 2016/06/03 20:38:48 deraadt Exp $ */
+/* $OpenBSD: pstat.c,v 1.107 2016/07/18 11:48:55 guenther Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
vnode_print(struct vnode *avnode, struct vnode *vp)
{
char *type, flags[16];
- char *fp = flags;
+ char *fp;
int flag;
/*
/*
* gather flags
*/
+ fp = flags;
flag = vp->v_flag;
if (flag & VROOT)
*fp++ = 'R';
*fp++ = 'l';
if (vp->v_bioflag & VBIOONSYNCLIST)
*fp++ = 's';
- if (flag == 0)
+ if (fp == flags)
*fp++ = '-';
*fp = '\0';
(void)printf("%0*lx %s %5s %4d %4u",