diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2002-06-09 08:13:10 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2002-06-09 08:13:10 +0000 |
commit | 3ed8b10a8df515c0cb5a2a6a0962c67f1c697164 (patch) | |
tree | 16644eb4e4232e2d2cd65fc342c5dbaafdc4e136 /sbin/dumplfs/dumplfs.c | |
parent | c021608bd50b74de1b8074e336f7adad03b1c7d8 (diff) |
rm trailing whitespace
Diffstat (limited to 'sbin/dumplfs/dumplfs.c')
-rw-r--r-- | sbin/dumplfs/dumplfs.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sbin/dumplfs/dumplfs.c b/sbin/dumplfs/dumplfs.c index 4770963d186..4c5653a3a2a 100644 --- a/sbin/dumplfs/dumplfs.c +++ b/sbin/dumplfs/dumplfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dumplfs.c,v 1.6 2002/02/16 21:27:33 millert Exp $ */ +/* $OpenBSD: dumplfs.c,v 1.7 2002/06/09 08:13:05 todd Exp $ */ /* $NetBSD: dumplfs.c,v 1.7 1995/12/14 22:36:34 thorpej Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dumplfs.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: dumplfs.c,v 1.6 2002/02/16 21:27:33 millert Exp $"; +static char rcsid[] = "$OpenBSD: dumplfs.c,v 1.7 2002/06/09 08:13:05 todd Exp $"; #endif #endif /* not lint */ @@ -229,10 +229,10 @@ dump_ifile(fd, lfsp, do_ientries) dump_cleaner_info(lfsp, ipage); print_suheader; continue; - } + } if (i < (lfsp->lfs_segtabsz + lfsp->lfs_cleansz)) { - inum = dump_ipage_segusage(lfsp, inum, ipage, + inum = dump_ipage_segusage(lfsp, inum, ipage, lfsp->lfs_sepb); if (!inum) if(!do_ientries) @@ -259,11 +259,11 @@ dump_ifile(fd, lfsp, do_ientries) if (i < lfsp->lfs_cleansz) { dump_cleaner_info(lfsp, ipage); continue; - } else + } else i -= lfsp->lfs_cleansz; if (i < lfsp->lfs_segtabsz) { - inum = dump_ipage_segusage(lfsp, inum, ipage, + inum = dump_ipage_segusage(lfsp, inum, ipage, lfsp->lfs_sepb); if (!inum) if(!do_ientries) @@ -293,7 +293,7 @@ dump_ifile(fd, lfsp, do_ientries) if (i < lfsp->lfs_cleansz) { dump_cleaner_info(lfsp, ipage); continue; - } else + } else i -= lfsp->lfs_cleansz; if (i < lfsp->lfs_segtabsz) { @@ -398,7 +398,7 @@ dump_sum(fd, lfsp, sp, segnum, addr) int numblocks; struct dinode *inop; - if (sp->ss_sumsum != (ck = cksum(&sp->ss_datasum, + if (sp->ss_sumsum != (ck = cksum(&sp->ss_datasum, LFS_SUMMARY_SIZE - sizeof(sp->ss_sumsum)))) { (void)printf("dumplfs: %s %d address 0x%lx\n", "corrupt summary block; segment", segnum, addr); @@ -423,10 +423,10 @@ dump_sum(fd, lfsp, sp, segnum, addr) printf(" Inode addresses:"); for (dp--, i = 0; i < sp->ss_ninos; dp--) { printf("\t0x%X {", *dp); - get(fd, *dp << (lfsp->lfs_bshift - lfsp->lfs_fsbtodb), inop, + get(fd, *dp << (lfsp->lfs_bshift - lfsp->lfs_fsbtodb), inop, (1 << lfsp->lfs_bshift)); for (j = 0; i < sp->ss_ninos && j < INOPB(lfsp); j++, i++) { - if (j > 0) + if (j > 0) (void)printf(", "); (void)printf("%d", inop[j].di_inumber); } @@ -476,7 +476,7 @@ dump_segment(fd, segnum, addr, lfsp, dump_sb) do { get(fd, sum_offset, sumblock, LFS_SUMMARY_SIZE); sump = (SEGSUM *)sumblock; - if (sump->ss_sumsum != cksum (&sump->ss_datasum, + if (sump->ss_sumsum != cksum (&sump->ss_datasum, LFS_SUMMARY_SIZE - sizeof(sump->ss_sumsum))) { sbp = (struct lfs *)sump; if (sb = (sbp->lfs_magic == LFS_MAGIC)) { @@ -492,7 +492,7 @@ dump_segment(fd, segnum, addr, lfsp, dump_sb) nblocks = dump_sum(fd, lfsp, sump, segnum, sum_offset >> (lfsp->lfs_bshift - lfsp->lfs_fsbtodb)); if (nblocks) - sum_offset += LFS_SUMMARY_SIZE + + sum_offset += LFS_SUMMARY_SIZE + (nblocks << lfsp->lfs_bshift); else sum_offset = 0; |