aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/network/receiver.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-08-18 12:15:03 +0200
committerMartin Willi <martin@revosec.ch>2010-08-18 12:15:03 +0200
commitba31fe1fd65feba781434ee4fabd9b1fd6432ecb (patch)
tree3d7073eb9bb51512d073eeccd3f0b3b5d32e1ff5 /src/libcharon/network/receiver.c
parent53115857ae5f3b25e889f394de0c61e7cc455c74 (diff)
downloadstrongswan-ba31fe1fd65feba781434ee4fabd9b1fd6432ecb.tar.bz2
strongswan-ba31fe1fd65feba781434ee4fabd9b1fd6432ecb.tar.xz
Use a seperate section for each nested struct member in INIT macro
Diffstat (limited to 'src/libcharon/network/receiver.c')
-rw-r--r--src/libcharon/network/receiver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcharon/network/receiver.c b/src/libcharon/network/receiver.c
index 63a8cab58..b53dea408 100644
--- a/src/libcharon/network/receiver.c
+++ b/src/libcharon/network/receiver.c
@@ -383,7 +383,9 @@ receiver_t *receiver_create()
u_int32_t now = time_monotonic(NULL);
INIT(this,
- .public.destroy = _destroy,
+ .public = {
+ .destroy = _destroy,
+ },
.secret_switch = now,
.secret_offset = random() % now,
);