From ba31fe1fd65feba781434ee4fabd9b1fd6432ecb Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 18 Aug 2010 12:15:03 +0200 Subject: Use a seperate section for each nested struct member in INIT macro --- src/libcharon/plugins/eap_ttls/eap_ttls.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/libcharon/plugins/eap_ttls/eap_ttls.c') diff --git a/src/libcharon/plugins/eap_ttls/eap_ttls.c b/src/libcharon/plugins/eap_ttls/eap_ttls.c index ad3360dee..ccc326e14 100644 --- a/src/libcharon/plugins/eap_ttls/eap_ttls.c +++ b/src/libcharon/plugins/eap_ttls/eap_ttls.c @@ -431,13 +431,15 @@ static eap_ttls_t *eap_ttls_create(identification_t *server, private_eap_ttls_t *this; INIT(this, - .public.eap_method = { - .initiate = _initiate, - .process = _process, - .get_type = _get_type, - .is_mutual = _is_mutual, - .get_msk = _get_msk, - .destroy = _destroy, + .public = { + .eap_method = { + .initiate = _initiate, + .process = _process, + .get_type = _get_type, + .is_mutual = _is_mutual, + .get_msk = _get_msk, + .destroy = _destroy, + }, }, .is_server = is_server, ); -- cgit v1.2.3