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/ats_api_scheduling.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/ats/ats_api_scheduling.c')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 16 |
1 files changed, 8 insertions, 8 deletions
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; |