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/ats-tests | |
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/ats-tests')
-rw-r--r-- | src/ats-tests/ats-testing.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/ats-tests/ats-testing.c b/src/ats-tests/ats-testing.c index 9f0519fa3..eb30daa6b 100644 --- a/src/ats-tests/ats-testing.c +++ b/src/ats-tests/ats-testing.c | |||
@@ -348,16 +348,16 @@ static void * | |||
348 | transport_connect_adapter (void *cls, | 348 | transport_connect_adapter (void *cls, |
349 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 349 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
350 | { | 350 | { |
351 | GNUNET_MQ_hd_fixed_size (ping, | ||
352 | TEST_MESSAGE_TYPE_PING, | ||
353 | struct TestMessage); | ||
354 | GNUNET_MQ_hd_fixed_size (pong, | ||
355 | TEST_MESSAGE_TYPE_PONG, | ||
356 | struct TestMessage); | ||
357 | struct BenchmarkPeer *me = cls; | 351 | struct BenchmarkPeer *me = cls; |
358 | struct GNUNET_MQ_MessageHandler handlers[] = { | 352 | struct GNUNET_MQ_MessageHandler handlers[] = { |
359 | make_ping_handler (me), | 353 | GNUNET_MQ_hd_fixed_size (ping, |
360 | make_pong_handler (me), | 354 | TEST_MESSAGE_TYPE_PING, |
355 | struct TestMessage, | ||
356 | me), | ||
357 | GNUNET_MQ_hd_fixed_size (pong, | ||
358 | TEST_MESSAGE_TYPE_PONG, | ||
359 | struct TestMessage, | ||
360 | me), | ||
361 | GNUNET_MQ_handler_end () | 361 | GNUNET_MQ_handler_end () |
362 | }; | 362 | }; |
363 | 363 | ||
@@ -390,16 +390,16 @@ static void * | |||
390 | core_connect_adapter (void *cls, | 390 | core_connect_adapter (void *cls, |
391 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 391 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
392 | { | 392 | { |
393 | GNUNET_MQ_hd_fixed_size (ping, | ||
394 | TEST_MESSAGE_TYPE_PING, | ||
395 | struct TestMessage); | ||
396 | GNUNET_MQ_hd_fixed_size (pong, | ||
397 | TEST_MESSAGE_TYPE_PONG, | ||
398 | struct TestMessage); | ||
399 | struct BenchmarkPeer *me = cls; | 393 | struct BenchmarkPeer *me = cls; |
400 | struct GNUNET_MQ_MessageHandler handlers[] = { | 394 | struct GNUNET_MQ_MessageHandler handlers[] = { |
401 | make_ping_handler (me), | 395 | GNUNET_MQ_hd_fixed_size (ping, |
402 | make_pong_handler (me), | 396 | TEST_MESSAGE_TYPE_PING, |
397 | struct TestMessage, | ||
398 | me), | ||
399 | GNUNET_MQ_hd_fixed_size (pong, | ||
400 | TEST_MESSAGE_TYPE_PONG, | ||
401 | struct TestMessage, | ||
402 | me), | ||
403 | GNUNET_MQ_handler_end () | 403 | GNUNET_MQ_handler_end () |
404 | }; | 404 | }; |
405 | 405 | ||