Complete an incomplete cut&paste operation.
This commit is contained in:
parent
1cd429e807
commit
fd503e698c
@ -57,7 +57,7 @@
|
|||||||
#include <geom/geom_slice.h>
|
#include <geom/geom_slice.h>
|
||||||
#include <machine/endian.h>
|
#include <machine/endian.h>
|
||||||
|
|
||||||
#define BSD_CLASS_NAME "SUNLABEL-class"
|
#define SUNLABEL_CLASS_NAME "SUNLABEL-class"
|
||||||
|
|
||||||
struct g_sunlabel_softc {
|
struct g_sunlabel_softc {
|
||||||
int foo;
|
int foo;
|
||||||
@ -98,7 +98,7 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags)
|
|||||||
g_trace(G_T_TOPOLOGY, "g_sunlabel_taste(%s,%s)", mp->name, pp->name);
|
g_trace(G_T_TOPOLOGY, "g_sunlabel_taste(%s,%s)", mp->name, pp->name);
|
||||||
g_topology_assert();
|
g_topology_assert();
|
||||||
if (flags == G_TF_NORMAL &&
|
if (flags == G_TF_NORMAL &&
|
||||||
!strcmp(pp->geom->class->name, BSD_CLASS_NAME))
|
!strcmp(pp->geom->class->name, SUNLABEL_CLASS_NAME))
|
||||||
return (NULL);
|
return (NULL);
|
||||||
gp = g_slice_new(mp, 8, pp, &cp, &ms, sizeof *ms, g_sunlabel_start);
|
gp = g_slice_new(mp, 8, pp, &cp, &ms, sizeof *ms, g_sunlabel_start);
|
||||||
if (gp == NULL)
|
if (gp == NULL)
|
||||||
@ -185,7 +185,7 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct g_class g_sunlabel_class = {
|
static struct g_class g_sunlabel_class = {
|
||||||
BSD_CLASS_NAME,
|
SUNLABEL_CLASS_NAME,
|
||||||
g_sunlabel_taste,
|
g_sunlabel_taste,
|
||||||
g_slice_access,
|
g_slice_access,
|
||||||
g_slice_orphan,
|
g_slice_orphan,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user