diff options
author | phk <phk@FreeBSD.org> | 2003-03-24 19:30:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-24 19:30:15 +0000 |
commit | 639a37daa0ebf45c523295d31cafd712c70f3ccd (patch) | |
tree | 1c157d2d81cc94cc489d32ee19a60992a97c11c6 /sys/geom/geom.h | |
parent | 803a8a66ce9e1f83729d0414701c26c086d375a8 (diff) | |
download | FreeBSD-src-639a37daa0ebf45c523295d31cafd712c70f3ccd.zip FreeBSD-src-639a37daa0ebf45c523295d31cafd712c70f3ccd.tar.gz |
Premptively change initializations of struct g_class to use C99
sparse struct initializations before we extend the struct with
new OAM related member functions.
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index 169da26..f6f2cdb 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. |