aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_identity
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-08-17 20:09:32 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-08-17 20:09:32 +0200
commit53115857ae5f3b25e889f394de0c61e7cc455c74 (patch)
treef443f4008406a00d076e4ceb470c5a366434902e /src/libcharon/plugins/eap_identity
parentf9a2d4bfcbf697abbf4c90234b5e7bf0d88d1db1 (diff)
downloadstrongswan-53115857ae5f3b25e889f394de0c61e7cc455c74.tar.bz2
strongswan-53115857ae5f3b25e889f394de0c61e7cc455c74.tar.xz
some simplifications using the INIT macro
Diffstat (limited to 'src/libcharon/plugins/eap_identity')
-rw-r--r--src/libcharon/plugins/eap_identity/eap_identity.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/libcharon/plugins/eap_identity/eap_identity.c b/src/libcharon/plugins/eap_identity/eap_identity.c
index 8277184f1..01998e843 100644
--- a/src/libcharon/plugins/eap_identity/eap_identity.c
+++ b/src/libcharon/plugins/eap_identity/eap_identity.c
@@ -182,15 +182,13 @@ eap_identity_t *eap_identity_create_server(identification_t *server,
private_eap_identity_t *this;
INIT(this,
- .public = {
- .eap_method_interface = {
- .initiate = _initiate_server,
- .process = _process_server,
- .get_type = _get_type,
- .is_mutual = _is_mutual,
- .get_msk = _get_msk,
- .destroy = _destroy,
- },
+ .public.eap_method_interface = {
+ .initiate = _initiate_server,
+ .process = _process_server,
+ .get_type = _get_type,
+ .is_mutual = _is_mutual,
+ .get_msk = _get_msk,
+ .destroy = _destroy,
},
.peer = peer->clone(peer),
.identity = chunk_empty,