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/revocation/revocation_api.c | |
parent | 94a717fab18ed25e6bec4b349526212045f6ca70 (diff) |
Use statement exprs instead of local function
This change lets us compile with clang again.
Diffstat (limited to 'src/revocation/revocation_api.c')
-rw-r--r-- | src/revocation/revocation_api.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c index 0b9bc4ea64..8c00ac2ae6 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; |