From 639a37daa0ebf45c523295d31cafd712c70f3ccd Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 24 Mar 2003 19:30:15 +0000 Subject: Premptively change initializations of struct g_class to use C99 sparse struct initializations before we extend the struct with new OAM related member functions. --- sys/geom/geom_mbr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/geom/geom_mbr.c') diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c index 8659665..b60bc22 100644 --- a/sys/geom/geom_mbr.c +++ b/sys/geom/geom_mbr.c @@ -331,9 +331,8 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist) } static struct g_class g_mbr_class = { - MBR_CLASS_NAME, - g_mbr_taste, - NULL, + .name = MBR_CLASS_NAME, + .taste = g_mbr_taste, G_CLASS_INITIALIZER }; -- cgit v1.1