Two statements on one line may have seemed clever but now it's
just confusing.
No functional change.
-/* $OpenBSD: disk.c,v 1.73 2021/09/13 15:07:51 krw Exp $ */
+/* $OpenBSD: disk.c,v 1.74 2021/10/10 15:34:21 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
disk.dk_size = DL_BLKTOSEC(&dl, sz);
disk.dk_sectors = DL_BLKTOSEC(&dl, disk.dk_sectors);
} else {
- disk.dk_sectors = dl.d_nsectors;
disk.dk_cylinders = dl.d_ncylinders;
disk.dk_heads = dl.d_ntracks;
disk.dk_sectors = dl.d_nsectors;
-/* $OpenBSD: part.c,v 1.107 2021/09/13 15:07:51 krw Exp $ */
+/* $OpenBSD: part.c,v 1.108 2021/10/10 15:34:21 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
size = prt->prt_ns;
end = (start + size) - 1;
- cyl = (start / spc); start -= (cyl * spc);
- head = (start / spt); start -= (head * spt);
+ cyl = (start / spc);
+ start -= (cyl * spc);
+ head = (start / spt);
+ start -= (head * spt);
sect = (start + 1);
prt->prt_scyl = cyl;
prt->prt_shead = head;
prt->prt_ssect = sect;
- cyl = (end / spc); end -= (cyl * spc);
- head = (end / spt); end -= (head * spt);
+ cyl = (end / spc);
+ end -= (cyl * spc);
+ head = (end / spt);
+ end -= (head * spt);
sect = (end + 1);
prt->prt_ecyl = cyl;