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/namecache | |
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/namecache')
-rw-r--r-- | src/namecache/namecache_api.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/namecache/namecache_api.c b/src/namecache/namecache_api.c index 46d685a26..9ccb91bc8 100644 --- a/src/namecache/namecache_api.c +++ b/src/namecache/namecache_api.c | |||
@@ -324,15 +324,15 @@ mq_error_handler (void *cls, | |||
324 | static void | 324 | static void |
325 | reconnect (struct GNUNET_NAMECACHE_Handle *h) | 325 | reconnect (struct GNUNET_NAMECACHE_Handle *h) |
326 | { | 326 | { |
327 | GNUNET_MQ_hd_var_size (lookup_block_response, | ||
328 | GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK_RESPONSE, | ||
329 | struct LookupBlockResponseMessage); | ||
330 | GNUNET_MQ_hd_fixed_size (block_cache_response, | ||
331 | GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE_RESPONSE, | ||
332 | struct BlockCacheResponseMessage); | ||
333 | struct GNUNET_MQ_MessageHandler handlers[] = { | 327 | struct GNUNET_MQ_MessageHandler handlers[] = { |
334 | make_lookup_block_response_handler (h), | 328 | GNUNET_MQ_hd_var_size (lookup_block_response, |
335 | make_block_cache_response_handler (h), | 329 | GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK_RESPONSE, |
330 | struct LookupBlockResponseMessage, | ||
331 | h), | ||
332 | GNUNET_MQ_hd_fixed_size (block_cache_response, | ||
333 | GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE_RESPONSE, | ||
334 | struct BlockCacheResponseMessage, | ||
335 | h), | ||
336 | GNUNET_MQ_handler_end () | 336 | GNUNET_MQ_handler_end () |
337 | }; | 337 | }; |
338 | GNUNET_assert (NULL == h->mq); | 338 | GNUNET_assert (NULL == h->mq); |