diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-05-24 21:49:10 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-05-24 21:49:10 +0000 |
commit | 3ad8b33cbfd68868ab48b52d61b2f9ca2bb8e5e2 (patch) | |
tree | b389de9a370e89e528f43d94f1f5d3f1e8d57712 /sbin/dump/tape.c | |
parent | 21ba3d0ed24f3aa90117bad879127a8463d3c8eb (diff) |
Nuke last of the illusionary 'dev_bsize' and 'dev_bshift' variables in
favour of DEV_BSIZE. No-op on 512-byte sector devices.
Diffstat (limited to 'sbin/dump/tape.c')
-rw-r--r-- | sbin/dump/tape.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c index 2b001f38da2..a64bd6b9fbf 100644 --- a/sbin/dump/tape.c +++ b/sbin/dump/tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tape.c,v 1.38 2013/11/12 04:59:02 deraadt Exp $ */ +/* $OpenBSD: tape.c,v 1.39 2014/05/24 21:49:09 krw Exp $ */ /* $NetBSD: tape.c,v 1.11 1997/06/05 11:13:26 lukem Exp $ */ /*- @@ -182,7 +182,7 @@ dumpblock(daddr_t blkno, int size) spcl.c_tapea += avail; if (trecno >= ntrec) flushtape(); - dblkno += avail << (tp_bshift - dev_bshift); + dblkno += avail << (tp_bshift - (ffs(DEV_BSIZE) - 1)); tpblks -= avail; } } |