From f1518dd2681ff851304689e70e8bf7e3c36b7380 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Mon, 7 Nov 2022 10:21:18 +0000 Subject: Nuke last references to d_drivedata. --- lib/libc/gen/disklabel.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/libc/gen') 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); -- cgit v1.2.3