aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api_performance.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/ats/ats_api_performance.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/ats/ats_api_performance.c')
-rw-r--r--src/ats/ats_api_performance.c24
1 files changed, 12 insertions, 12 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,
566static void 566static void
567reconnect (struct GNUNET_ATS_PerformanceHandle *ph) 567reconnect (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;