(*cq = *cp) && *cq != '|' && *cq != ':')
cq++, cp++;
*cq = '\0';
- /*
- * boot name (optional) xxboot, bootxx
- */
- cgetstr(buf, "b0", &dp->d_boot0);
- cgetstr(buf, "b1", &dp->d_boot1);
if (cgetcap(buf, "sf", ':') != NULL)
dp->d_flags |= D_BADSECT;
-/* $OpenBSD: disklabel.h,v 1.72 2015/09/24 19:28:33 krw Exp $ */
+/* $OpenBSD: disklabel.h,v 1.73 2015/10/25 16:35:40 krw Exp $ */
/* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */
/*
u_int16_t d_type; /* drive type */
u_int16_t d_subtype; /* controller/d_type specific */
char d_typename[16]; /* type name, e.g. "eagle" */
-
- /*
- * d_packname contains the pack identifier and is returned when
- * the disklabel is read off the disk or in-core copy.
- * d_boot0 and d_boot1 are the (optional) names of the
- * primary (block 0) and secondary (block 1-15) bootstraps
- * as found in /usr/mdec. These are returned when using
- * getdiskbyname(3) to retrieve the values from /etc/disktab.
- */
- union {
- char un_d_packname[16]; /* pack identifier */
- struct {
- char *un_d_boot0; /* primary bootstrap name */
- char *un_d_boot1; /* secondary bootstrap name */
- } un_b;
- } d_un;
-#define d_packname d_un.un_d_packname
-#define d_boot0 d_un.un_b.un_d_boot0
-#define d_boot1 d_un.un_b.un_d_boot1
+ char d_packname[16]; /* pack identifier */
/* disk geometry: */
u_int32_t d_secsize; /* # of bytes per sector */