diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2021-06-10 15:09:17 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2021-06-10 15:09:17 +0000 |
commit | e06d591d7d23a999c778ed81cc8417277d636c80 (patch) | |
tree | ad17c20ac88c512223ae6696a36c98d66d721197 /sbin/fdisk | |
parent | 023fa3fe581e0ee6167fa75b527178af18ba7299 (diff) |
'i' is a silly name for a daddr_t variable, and could be needed
for a future 'for'. Use 'daddr' instead.
No functional change.
Diffstat (limited to 'sbin/fdisk')
-rw-r--r-- | sbin/fdisk/mbr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/fdisk/mbr.c b/sbin/fdisk/mbr.c index 69479fdfda0..41e7478d5ef 100644 --- a/sbin/fdisk/mbr.c +++ b/sbin/fdisk/mbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbr.c,v 1.73 2021/06/02 22:44:26 krw Exp $ */ +/* $OpenBSD: mbr.c,v 1.74 2021/06/10 15:09:16 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -79,7 +79,7 @@ MBR_init(struct mbr *mbr) { extern uint32_t b_arg; uint64_t adj; - daddr_t i; + daddr_t daddr; /* * XXX Do *NOT* zap all MBR parts! Some archs still read initmbr @@ -148,10 +148,10 @@ MBR_init(struct mbr *mbr) #endif /* Start OpenBSD MBR partition on a power of 2 block number. */ - i = 1; - while (i < DL_SECTOBLK(&dl, mbr->part[3].bs)) - i *= 2; - adj = DL_BLKTOSEC(&dl, i) - mbr->part[3].bs; + daddr = 1; + while (daddr < DL_SECTOBLK(&dl, mbr->part[3].bs)) + daddr *= 2; + adj = DL_BLKTOSEC(&dl, daddr) - mbr->part[3].bs; mbr->part[3].bs += adj; mbr->part[3].ns -= adj; PRT_fix_CHS(&mbr->part[3]); |