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/libstrongswan/plugins/gcrypt/gcrypt_plugin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c') diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c index cc13f5516..eb9b95004 100644 --- a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c +++ b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c @@ -138,7 +138,11 @@ plugin_t *gcrypt_plugin_create() gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0); INIT(this, - .public.plugin.destroy = _destroy, + .public = { + .plugin = { + .destroy = _destroy, + }, + }, ); /* hashers */ -- cgit v1.2.3