summaryrefslogtreecommitdiff
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-12-28 20:48:19 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-12-28 20:48:19 +0000
commit1b49ee3eb8c877858a1f6aed46946e85333e60d6 (patch)
tree6384a28ddd41cb6cdd7d6ac636ee373a55a31ff8 /usr.bin/fstat
parent3f0c4ca6296d5ec4706edf6976987328f125adb2 (diff)
Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes.
No functional change, okay tedu@.
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/fstat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index fbd81584673..57e97a890ed 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fstat.c,v 1.54 2005/12/17 13:56:02 pedro Exp $ */
+/* $OpenBSD: fstat.c,v 1.55 2005/12/28 20:48:18 pedro Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)fstat.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$OpenBSD: fstat.c,v 1.54 2005/12/17 13:56:02 pedro Exp $";
+static char *rcsid = "$OpenBSD: fstat.c,v 1.55 2005/12/28 20:48:18 pedro Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -527,9 +527,9 @@ ufs_filestat(struct vnode *vp, struct filestat *fsp)
fsp->fsid = inode.i_dev & 0xffff;
fsp->fileid = (long)inode.i_number;
- fsp->mode = inode.i_ffs_mode;
- fsp->size = inode.i_ffs_size;
- fsp->rdev = inode.i_ffs_rdev;
+ fsp->mode = inode.i_ffs1_mode;
+ fsp->size = inode.i_ffs1_size;
+ fsp->rdev = inode.i_ffs1_rdev;
return 1;
}