aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r--sys/geom/geom.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index 169da266971c..f6f2cdb742a0 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -100,7 +100,11 @@ struct g_class {
u_int protect;
};
-#define G_CLASS_INITIALIZER { 0, 0 }, { 0 }, 0, 0
+#define G_CLASS_INITIALIZER \
+ .class = { 0, 0 }, \
+ .geom = { 0 }, \
+ .event = 0, \
+ .protect = 0
/*
* The g_geom is an instance of a g_class.