From 7f937e3781f36538d9864fa841822eecdaf0bf27 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Thu, 18 Aug 2016 00:03:29 +0000 Subject: Use statement exprs instead of local function This change lets us compile with clang again. --- src/scalarproduct/scalarproduct_api.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/scalarproduct/scalarproduct_api.c') diff --git a/src/scalarproduct/scalarproduct_api.c b/src/scalarproduct/scalarproduct_api.c index 09e06d5a0..5ad64f4be 100644 --- a/src/scalarproduct/scalarproduct_api.c +++ b/src/scalarproduct/scalarproduct_api.c @@ -230,13 +230,13 @@ GNUNET_SCALARPRODUCT_accept_computation (const struct GNUNET_CONFIGURATION_Handl GNUNET_SCALARPRODUCT_ContinuationWithStatus cont, void *cont_cls) { - GNUNET_MQ_hd_var_size (response, - GNUNET_MESSAGE_TYPE_SCALARPRODUCT_RESULT, - struct ClientResponseMessage); struct GNUNET_SCALARPRODUCT_ComputationHandle *h = GNUNET_new (struct GNUNET_SCALARPRODUCT_ComputationHandle); struct GNUNET_MQ_MessageHandler handlers[] = { - make_response_handler (h), + GNUNET_MQ_hd_var_size (response, + GNUNET_MESSAGE_TYPE_SCALARPRODUCT_RESULT, + struct ClientResponseMessage, + h), GNUNET_MQ_handler_end () }; struct GNUNET_MQ_Envelope *env; @@ -388,13 +388,13 @@ GNUNET_SCALARPRODUCT_start_computation (const struct GNUNET_CONFIGURATION_Handle GNUNET_SCALARPRODUCT_DatumProcessor cont, void *cont_cls) { - GNUNET_MQ_hd_var_size (response, - GNUNET_MESSAGE_TYPE_SCALARPRODUCT_RESULT, - struct ClientResponseMessage); struct GNUNET_SCALARPRODUCT_ComputationHandle *h = GNUNET_new (struct GNUNET_SCALARPRODUCT_ComputationHandle); struct GNUNET_MQ_MessageHandler handlers[] = { - make_response_handler (h), + GNUNET_MQ_hd_var_size (response, + GNUNET_MESSAGE_TYPE_SCALARPRODUCT_RESULT, + struct ClientResponseMessage, + h), GNUNET_MQ_handler_end () }; struct GNUNET_MQ_Envelope *env; -- cgit v1.2.3