diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-11-05 00:51:59 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-11-05 00:51:59 +0000 |
commit | 796d477c0b5f03d8d84b1697382465b7555e5c98 (patch) | |
tree | 0522f4b0c219b74af4f5e76a0fc813a809442abc /sbin/newfs | |
parent | 1de8989a1b132480cf21105d5617b5ca6325daa0 (diff) |
Replace direct references to p_size, p_offset and d_secperunit with
DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in
order to get|set correct value that includes the high bits of the
value.
Diffstat (limited to 'sbin/newfs')
-rw-r--r-- | sbin/newfs/newfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index f6cdf776d4b..d0cb25b6481 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newfs.c,v 1.93 2013/10/07 10:05:24 krw Exp $ */ +/* $OpenBSD: newfs.c,v 1.94 2013/11/05 00:51:58 krw Exp $ */ /* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */ /* @@ -342,7 +342,7 @@ main(int argc, char *argv[]) mfsfakelabel.d_ntracks = 16; mfsfakelabel.d_ncylinders = 16; mfsfakelabel.d_secpercyl = 1024; - mfsfakelabel.d_secperunit = 16384; + DL_SETDSIZE(&mfsfakelabel, 16384); mfsfakelabel.d_npartitions = 1; mfsfakelabel.d_version = 1; DL_SETPSIZE(&mfsfakelabel.d_partitions[0], 16384); |