aboutsummaryrefslogtreecommitdiff
path: root/src/gns
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/gns
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/gns')
-rw-r--r--src/gns/gns_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c
index c45f5bc3d..475d5b5cd 100644
--- a/src/gns/gns_api.c
+++ b/src/gns/gns_api.c
@@ -264,11 +264,11 @@ handle_result (void *cls,
264static void 264static void
265reconnect (struct GNUNET_GNS_Handle *handle) 265reconnect (struct GNUNET_GNS_Handle *handle)
266{ 266{
267 GNUNET_MQ_hd_var_size (result,
268 GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT,
269 struct GNUNET_GNS_ClientLookupResultMessage);
270 struct GNUNET_MQ_MessageHandler handlers[] = { 267 struct GNUNET_MQ_MessageHandler handlers[] = {
271 make_result_handler (handle), 268 GNUNET_MQ_hd_var_size (result,
269 GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT,
270 struct GNUNET_GNS_ClientLookupResultMessage,
271 handle),
272 GNUNET_MQ_handler_end () 272 GNUNET_MQ_handler_end ()
273 }; 273 };
274 struct GNUNET_GNS_LookupRequest *lh; 274 struct GNUNET_GNS_LookupRequest *lh;