summaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-06-16 16:54:30 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-06-16 16:54:30 +0000
commit9e8563ebc33bbae323eead47a41b9d6333fca065 (patch)
treea1f2bca48bf254416d596a1babaea2103a21eaec /usr.sbin/pstat
parentf87cf415222bef86c12f14f4f25072a7a0f1f99a (diff)
When processing the KERN_VNODE sysctl, the kernel builds a packed structure,
while pstat(8) expects a C structure abiding the regular structure packing rules. This caused pstat -v to break on powerpc. Unbreak the confusion by defining the structure in a common header file, and having the kernel use it. ok millert@ deraadt@
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index eea200f5182..a6c58a21853 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pstat.c,v 1.33 2002/06/08 23:41:42 angelos Exp $ */
+/* $OpenBSD: pstat.c,v 1.34 2002/06/16 16:54:29 miod Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94";
#else
-static char *rcsid = "$OpenBSD: pstat.c,v 1.33 2002/06/08 23:41:42 angelos Exp $";
+static char *rcsid = "$OpenBSD: pstat.c,v 1.34 2002/06/16 16:54:29 miod Exp $";
#endif
#endif /* not lint */
@@ -222,11 +222,6 @@ main(argc, argv)
exit (0);
}
-struct e_vnode {
- struct vnode *avnode;
- struct vnode vnode;
-};
-
void
vnodemode()
{
@@ -269,7 +264,7 @@ vnodemode()
}
(void)printf("\n");
}
- vnode_print(evp->avnode, vp);
+ vnode_print(evp->vptr, vp);
if (!strncmp(ST.f_fstypename, MOUNT_FFS, MFSNAMELEN) ||
!strncmp(ST.f_fstypename, MOUNT_MFS, MFSNAMELEN)) {
ufs_print(vp);