diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2007-06-01 23:42:36 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2007-06-01 23:42:36 +0000 |
commit | 1b739e73e223f9c851a42f8417dda3d6e71ed3ff (patch) | |
tree | 4d177508418d6674c1b850cd10836a8165891af9 /sbin/ncheck_ffs | |
parent | 442f64cf0df0d38e9f4cd280a06fe8270dd85d1b (diff) |
ufs1_daddr_t cleanup, okay otto@
Diffstat (limited to 'sbin/ncheck_ffs')
-rw-r--r-- | sbin/ncheck_ffs/ncheck_ffs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/ncheck_ffs/ncheck_ffs.c b/sbin/ncheck_ffs/ncheck_ffs.c index 73a6cc56e01..6009a50fbb6 100644 --- a/sbin/ncheck_ffs/ncheck_ffs.c +++ b/sbin/ncheck_ffs/ncheck_ffs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncheck_ffs.c,v 1.29 2007/06/01 06:41:35 deraadt Exp $ */ +/* $OpenBSD: ncheck_ffs.c,v 1.30 2007/06/01 23:42:35 pedro Exp $ */ /*- * Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> @@ -55,7 +55,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.29 2007/06/01 06:41:35 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.30 2007/06/01 23:42:35 pedro Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -379,9 +379,9 @@ dirindir(ino_t ino, daddr64_t blkno, int ind_level, off_t filesize, if (ind_level <= 0) { for (i = 0; filesize > 0 && i < NINDIR(sblock); i++) { if (sblock->fs_magic == FS_UFS1_MAGIC) - blkno = ((ufs1_daddr_t *)idblk)[i]; + blkno = ((int32_t *)idblk)[i]; else - blkno = ((daddr64_t *)idblk)[i]; + blkno = ((int64_t *)idblk)[i]; if (blkno != 0) searchdir(ino, blkno, sblock->fs_bsize, filesize, path); @@ -391,9 +391,9 @@ dirindir(ino_t ino, daddr64_t blkno, int ind_level, off_t filesize, ind_level--; for (i = 0; filesize > 0 && i < NINDIR(sblock); i++) { if (sblock->fs_magic == FS_UFS1_MAGIC) - blkno = ((ufs1_daddr_t *)idblk)[i]; + blkno = ((int32_t *)idblk)[i]; else - blkno = ((daddr64_t *)idblk)[i]; + blkno = ((int64_t *)idblk)[i]; if (blkno != 0) dirindir(ino, blkno, ind_level, filesize, path); } |