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/plugins/eap_md5/eap_md5.c | |
parent | f9a2d4bfcbf697abbf4c90234b5e7bf0d88d1db1 (diff) | |
download | strongswan-53115857ae5f3b25e889f394de0c61e7cc455c74.tar.bz2 strongswan-53115857ae5f3b25e889f394de0c61e7cc455c74.tar.xz |
some simplifications using the INIT macro
Diffstat (limited to 'src/libcharon/plugins/eap_md5/eap_md5.c')
-rw-r--r-- | src/libcharon/plugins/eap_md5/eap_md5.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/libcharon/plugins/eap_md5/eap_md5.c b/src/libcharon/plugins/eap_md5/eap_md5.c index 3b0c2c9d4..a74151ac1 100644 --- a/src/libcharon/plugins/eap_md5/eap_md5.c +++ b/src/libcharon/plugins/eap_md5/eap_md5.c @@ -267,15 +267,13 @@ eap_md5_t *eap_md5_create_peer(identification_t *server, identification_t *peer) private_eap_md5_t *this; INIT(this, - .public = { - .eap_method_interface = { - .initiate = _initiate_peer, - .process = _process_peer, - .get_type = _get_type, - .is_mutual = _is_mutual, - .get_msk = _get_msk, - .destroy = _destroy, - }, + .public.eap_method_interface = { + .initiate = _initiate_peer, + .process = _process_peer, + .get_type = _get_type, + .is_mutual = _is_mutual, + .get_msk = _get_msk, + .destroy = _destroy, }, .peer = peer->clone(peer), .server = server->clone(server), |