aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_reliability.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2016-08-18 00:03:29 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2016-08-18 00:03:29 +0000
commit7f937e3781f36538d9864fa841822eecdaf0bf27 (patch)
tree318eb592dae2bbf59d094f5df140c24a4b6184c9 /src/core/test_core_api_reliability.c
parent94a717fab18ed25e6bec4b349526212045f6ca70 (diff)
downloadgnunet-7f937e3781f36538d9864fa841822eecdaf0bf27.tar.gz
gnunet-7f937e3781f36538d9864fa841822eecdaf0bf27.zip
Use statement exprs instead of local function
This change lets us compile with clang again.
Diffstat (limited to 'src/core/test_core_api_reliability.c')
-rw-r--r--src/core/test_core_api_reliability.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c
index d7d4a6bd6..4d8d54028 100644
--- a/src/core/test_core_api_reliability.c
+++ b/src/core/test_core_api_reliability.c
@@ -322,12 +322,12 @@ static void
322init_notify (void *cls, 322init_notify (void *cls,
323 const struct GNUNET_PeerIdentity *my_identity) 323 const struct GNUNET_PeerIdentity *my_identity)
324{ 324{
325 GNUNET_MQ_hd_var_size (test,
326 MTYPE,
327 struct TestMessage);
328 struct PeerContext *p = cls; 325 struct PeerContext *p = cls;
329 struct GNUNET_MQ_MessageHandler handlers[] = { 326 struct GNUNET_MQ_MessageHandler handlers[] = {
330 make_test_handler (NULL), 327 GNUNET_MQ_hd_var_size (test,
328 MTYPE,
329 struct TestMessage,
330 NULL);
331 GNUNET_MQ_handler_end () 331 GNUNET_MQ_handler_end ()
332 }; 332 };
333 333
@@ -442,11 +442,11 @@ run (void *cls,
442 const char *cfgfile, 442 const char *cfgfile,
443 const struct GNUNET_CONFIGURATION_Handle *cfg) 443 const struct GNUNET_CONFIGURATION_Handle *cfg)
444{ 444{
445 GNUNET_MQ_hd_fixed_size (test,
446 MTYPE,
447 struct TestMessage);
448 struct GNUNET_MQ_MessageHandler handlers[] = { 445 struct GNUNET_MQ_MessageHandler handlers[] = {
449 make_test_handler (NULL), 446 GNUNET_MQ_hd_fixed_size (test,
447 MTYPE,
448 struct TestMessage,
449 NULL);
450 GNUNET_MQ_handler_end () 450 GNUNET_MQ_handler_end ()
451 }; 451 };
452 452