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 | |
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')
-rw-r--r-- | src/ats/ats_api_performance.c | 24 | ||||
-rw-r--r-- | src/ats/ats_api_scheduling.c | 16 |
2 files changed, 20 insertions, 20 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c index 7edc39e38..dd8666d4c 100644 --- a/src/ats/ats_api_performance.c +++ b/src/ats/ats_api_performance.c | |||
@@ -566,19 +566,19 @@ mq_error_handler (void *cls, | |||
566 | static void | 566 | static void |
567 | reconnect (struct GNUNET_ATS_PerformanceHandle *ph) | 567 | reconnect (struct GNUNET_ATS_PerformanceHandle *ph) |
568 | { | 568 | { |
569 | GNUNET_MQ_hd_var_size (peer_information, | ||
570 | GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION, | ||
571 | struct PeerInformationMessage); | ||
572 | GNUNET_MQ_hd_fixed_size (reservation_result, | ||
573 | GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT, | ||
574 | struct ReservationResultMessage); | ||
575 | GNUNET_MQ_hd_var_size (address_list, | ||
576 | GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_RESPONSE, | ||
577 | struct PeerInformationMessage); | ||
578 | struct GNUNET_MQ_MessageHandler handlers[] = { | 569 | struct GNUNET_MQ_MessageHandler handlers[] = { |
579 | make_peer_information_handler (ph), | 570 | GNUNET_MQ_hd_var_size (peer_information, |
580 | make_reservation_result_handler (ph), | 571 | GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION, |
581 | make_address_list_handler (ph), | 572 | struct PeerInformationMessage, |
573 | ph), | ||
574 | GNUNET_MQ_hd_fixed_size (reservation_result, | ||
575 | GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT, | ||
576 | struct ReservationResultMessage, | ||
577 | ph), | ||
578 | GNUNET_MQ_hd_var_size (address_list, | ||
579 | GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_RESPONSE, | ||
580 | struct PeerInformationMessage, | ||
581 | ph), | ||
582 | GNUNET_MQ_handler_end () | 582 | GNUNET_MQ_handler_end () |
583 | }; | 583 | }; |
584 | struct GNUNET_MQ_Envelope *env; | 584 | struct GNUNET_MQ_Envelope *env; |
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index c4174f99e..4a872b90a 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -515,15 +515,15 @@ send_add_address_message (struct GNUNET_ATS_SchedulingHandle *sh, | |||
515 | static void | 515 | static void |
516 | reconnect (struct GNUNET_ATS_SchedulingHandle *sh) | 516 | reconnect (struct GNUNET_ATS_SchedulingHandle *sh) |
517 | { | 517 | { |
518 | GNUNET_MQ_hd_fixed_size (ats_session_release, | ||
519 | GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE, | ||
520 | struct GNUNET_ATS_SessionReleaseMessage); | ||
521 | GNUNET_MQ_hd_fixed_size (ats_address_suggestion, | ||
522 | GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION, | ||
523 | struct AddressSuggestionMessage); | ||
524 | struct GNUNET_MQ_MessageHandler handlers[] = { | 518 | struct GNUNET_MQ_MessageHandler handlers[] = { |
525 | make_ats_session_release_handler (sh), | 519 | GNUNET_MQ_hd_fixed_size (ats_session_release, |
526 | make_ats_address_suggestion_handler (sh), | 520 | GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE, |
521 | struct GNUNET_ATS_SessionReleaseMessage, | ||
522 | sh), | ||
523 | GNUNET_MQ_hd_fixed_size (ats_address_suggestion, | ||
524 | GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION, | ||
525 | struct AddressSuggestionMessage, | ||
526 | sh), | ||
527 | GNUNET_MQ_handler_end () | 527 | GNUNET_MQ_handler_end () |
528 | }; | 528 | }; |
529 | struct GNUNET_MQ_Envelope *ev; | 529 | struct GNUNET_MQ_Envelope *ev; |