diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-08-17 20:09:32 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-08-17 20:09:32 +0200 |
commit | 53115857ae5f3b25e889f394de0c61e7cc455c74 (patch) | |
tree | f443f4008406a00d076e4ceb470c5a366434902e /src/libcharon/sa/authenticators/eap_authenticator.c | |
parent | f9a2d4bfcbf697abbf4c90234b5e7bf0d88d1db1 (diff) | |
download | strongswan-53115857ae5f3b25e889f394de0c61e7cc455c74.tar.bz2 strongswan-53115857ae5f3b25e889f394de0c61e7cc455c74.tar.xz |
some simplifications using the INIT macro
Diffstat (limited to 'src/libcharon/sa/authenticators/eap_authenticator.c')
-rw-r--r-- | src/libcharon/sa/authenticators/eap_authenticator.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/libcharon/sa/authenticators/eap_authenticator.c b/src/libcharon/sa/authenticators/eap_authenticator.c index 2ad9fd278..23105f640 100644 --- a/src/libcharon/sa/authenticators/eap_authenticator.c +++ b/src/libcharon/sa/authenticators/eap_authenticator.c @@ -674,13 +674,11 @@ eap_authenticator_t *eap_authenticator_create_verifier(ike_sa_t *ike_sa, private_eap_authenticator_t *this; INIT(this, - .public = { - .authenticator = { - .build = _build_server, - .process = _process_server, - .is_mutual = _is_mutual, - .destroy = _destroy, - }, + .public.authenticator = { + .build = _build_server, + .process = _process_server, + .is_mutual = _is_mutual, + .destroy = _destroy, }, .ike_sa = ike_sa, .received_init = received_init, |