Use a seperate section for each nested struct member in INIT macro

This commit is contained in:
Martin Willi
2010-08-18 12:15:03 +02:00
parent 53115857ae
commit ba31fe1fd6
77 changed files with 615 additions and 448 deletions
+3 -1
View File
@@ -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,
);