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/revocation/revocation_api.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/revocation/revocation_api.c') diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c index 0b9bc4ea6..8c00ac2ae 100644 --- a/src/revocation/revocation_api.c +++ b/src/revocation/revocation_api.c @@ -113,13 +113,13 @@ GNUNET_REVOCATION_query (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_REVOCATION_Callback func, void *func_cls) { - GNUNET_MQ_hd_fixed_size (revocation_query_response, - GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE, - struct QueryResponseMessage); struct GNUNET_REVOCATION_Query *q = GNUNET_new (struct GNUNET_REVOCATION_Query); struct GNUNET_MQ_MessageHandler handlers[] = { - make_revocation_query_response_handler (q), + GNUNET_MQ_hd_fixed_size (revocation_query_response, + GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE, + struct QueryResponseMessage, + q), GNUNET_MQ_handler_end () }; struct QueryMessage *qm; @@ -255,13 +255,13 @@ GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_REVOCATION_Callback func, void *func_cls) { - GNUNET_MQ_hd_fixed_size (revocation_response, - GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE, - struct RevocationResponseMessage); struct GNUNET_REVOCATION_Handle *h = GNUNET_new (struct GNUNET_REVOCATION_Handle); struct GNUNET_MQ_MessageHandler handlers[] = { - make_revocation_response_handler (h), + GNUNET_MQ_hd_fixed_size (revocation_response, + GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE, + struct RevocationResponseMessage, + h), GNUNET_MQ_handler_end () }; unsigned long long matching_bits; -- cgit v1.2.3