summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-06-01 06:13:15 +0000
committerotto <otto@openbsd.org>2007-06-01 06:13:15 +0000
commit9c816bef9feece6158fda167cce11c9e920cd838 (patch)
treeb8e1de78707a3aa2e4569d21840dab200a54c271 /lib/libc
parentRemove more Free(?)BSD and NetBSD #ifdef/#endifs. No functional nor (diff)
downloadwireguard-openbsd-9c816bef9feece6158fda167cce11c9e920cd838.tar.xz
wireguard-openbsd-9c816bef9feece6158fda167cce11c9e920cd838.zip
mark the non-handling of 48 bits units with XXX
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/disklabel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gen/disklabel.c b/lib/libc/gen/disklabel.c
index ac5a21f05ac..539e422ebd1 100644
--- a/lib/libc/gen/disklabel.c
+++ b/lib/libc/gen/disklabel.c
@@ -93,6 +93,7 @@ getdiskbyname(const char *name)
else
getnumdflt(dp->d_type, "dt", 0);
getnumdflt(dp->d_secpercyl, "sc", dp->d_nsectors * dp->d_ntracks);
+ /* XXX */
getnumdflt(dp->d_secperunit, "su", dp->d_secpercyl * dp->d_ncylinders);
getnumdflt(dp->d_rpm, "rm", 3600);
getnumdflt(dp->d_interleave, "il", 1);
@@ -114,12 +115,14 @@ getdiskbyname(const char *name)
long f;
psize[1] = pbsize[1] = pfsize[1] = poffset[1] = ptype[1] = p;
+ /* XXX */
if (cgetnum(buf, psize, &f) == -1)
pp->p_size = 0;
else {
u_int32_t fsize, frag = 8;
pp->p_size = f;
+ /* XXX */
getnum(pp->p_offset, poffset);
getnumdflt(fsize, pfsize, 0);
if (fsize) {