diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2016-08-18 00:03:29 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2016-08-18 00:03:29 +0000 |
commit | 7f937e3781f36538d9864fa841822eecdaf0bf27 (patch) | |
tree | 318eb592dae2bbf59d094f5df140c24a4b6184c9 /src/core/test_core_quota_compliance.c | |
parent | 94a717fab18ed25e6bec4b349526212045f6ca70 (diff) | |
download | gnunet-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_quota_compliance.c')
-rw-r--r-- | src/core/test_core_quota_compliance.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index 31063b814..4dee958f2 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c | |||
@@ -461,12 +461,12 @@ static void | |||
461 | init_notify (void *cls, | 461 | init_notify (void *cls, |
462 | const struct GNUNET_PeerIdentity *my_identity) | 462 | const struct GNUNET_PeerIdentity *my_identity) |
463 | { | 463 | { |
464 | GNUNET_MQ_hd_fixed_size (test, | ||
465 | MTYPE, | ||
466 | struct TestMessage); | ||
467 | struct PeerContext *p = cls; | 464 | struct PeerContext *p = cls; |
468 | struct GNUNET_MQ_MessageHandler handlers[] = { | 465 | struct GNUNET_MQ_MessageHandler handlers[] = { |
469 | make_test_handler (NULL), | 466 | GNUNET_MQ_hd_fixed_size (test, |
467 | MTYPE, | ||
468 | struct TestMessage, | ||
469 | NULL), | ||
470 | GNUNET_MQ_handler_end () | 470 | GNUNET_MQ_handler_end () |
471 | }; | 471 | }; |
472 | 472 | ||
@@ -593,11 +593,11 @@ run (void *cls, | |||
593 | const char *cfgfile, | 593 | const char *cfgfile, |
594 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 594 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
595 | { | 595 | { |
596 | GNUNET_MQ_hd_fixed_size (test, | ||
597 | MTYPE, | ||
598 | struct TestMessage); | ||
599 | struct GNUNET_MQ_MessageHandler handlers[] = { | 596 | struct GNUNET_MQ_MessageHandler handlers[] = { |
600 | make_test_handler (NULL), | 597 | GNUNET_MQ_hd_fixed_size (test, |
598 | MTYPE, | ||
599 | struct TestMessage, | ||
600 | NULL), | ||
601 | GNUNET_MQ_handler_end () | 601 | GNUNET_MQ_handler_end () |
602 | }; | 602 | }; |
603 | 603 | ||