summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_gpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_gpt.c')
-rw-r--r--sys/geom/geom_gpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_gpt.c b/sys/geom/geom_gpt.c
index 568420d..efcbb2e 100644
--- a/sys/geom/geom_gpt.c
+++ b/sys/geom/geom_gpt.c
@@ -111,7 +111,7 @@ g_gpt_start(struct bio *bp)
*/
type = (memcmp(&gs->part[pp->index]->ent_type, &freebsd,
sizeof(freebsd))) ? 0 : 165;
- return ((g_haveattr_int(bp, "MBR::type", type)) ? 1 : 0);
+ return ((g_handleattr_int(bp, "MBR::type", type)) ? 1 : 0);
}
static void
@@ -246,7 +246,7 @@ static struct g_class g_gpt_class = {
"GPT",
g_gpt_taste,
NULL,
- G_CLASS_INITSTUFF
+ G_CLASS_INITIALIZER
};
DECLARE_GEOM_CLASS(g_gpt_class, g_gpt);
OpenPOWER on IntegriCloud