summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2022-11-07 10:21:18 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2022-11-07 10:21:18 +0000
commitf1518dd2681ff851304689e70e8bf7e3c36b7380 (patch)
tree857f25ae2cd18188fbe202987ceab0c04c585c60 /lib/libc/gen
parent30bace807295fe6ff92ee4a99e15345b5b929e1d (diff)
Nuke last references to d_drivedata.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/disklabel.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/libc/gen/disklabel.c b/lib/libc/gen/disklabel.c
index db5878ae25d..f935875d2a2 100644
--- a/lib/libc/gen/disklabel.c
+++ b/lib/libc/gen/disklabel.c
@@ -55,7 +55,6 @@ getdiskbyname(const char *name)
char *cp, *cq;
char p, max, psize[3], pbsize[3],
pfsize[3], poffset[3], ptype[3];
- u_int32_t *dx;
if (cgetent(&buf, db_array, (char *) name) < 0)
return NULL;
@@ -127,12 +126,6 @@ getdiskbyname(const char *name)
}
}
dp->d_npartitions = max + 1 - 'a';
- (void)strlcpy(psize, "dx", sizeof psize);
- dx = dp->d_drivedata;
- for (p = '0'; p < '0' + NDDATA; p++, dx++) {
- psize[1] = p;
- getnumdflt(*dx, psize, 0);
- }
dp->d_magic = DISKMAGIC;
dp->d_magic2 = DISKMAGIC;
free(buf);