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_tls/eap_tls.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/libcharon/plugins/eap_tls/eap_tls.c') diff --git a/src/libcharon/plugins/eap_tls/eap_tls.c b/src/libcharon/plugins/eap_tls/eap_tls.c index 849f03875..ac835c795 100644 --- a/src/libcharon/plugins/eap_tls/eap_tls.c +++ b/src/libcharon/plugins/eap_tls/eap_tls.c @@ -422,13 +422,15 @@ static eap_tls_t *eap_tls_create(identification_t *server, private_eap_tls_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