aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api_monitor.c
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/namestore/namestore_api_monitor.c
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/namestore/namestore_api_monitor.c')
-rw-r--r--src/namestore/namestore_api_monitor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c
index 7e75b07e5..00f0887d4 100644
--- a/src/namestore/namestore_api_monitor.c
+++ b/src/namestore/namestore_api_monitor.c
@@ -243,15 +243,15 @@ mq_error_handler (void *cls,
243static void 243static void
244reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm) 244reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm)
245{ 245{
246 GNUNET_MQ_hd_fixed_size (sync,
247 GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_SYNC,
248 struct GNUNET_MessageHeader);
249 GNUNET_MQ_hd_var_size (result,
250 GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT,
251 struct RecordResultMessage);
252 struct GNUNET_MQ_MessageHandler handlers[] = { 246 struct GNUNET_MQ_MessageHandler handlers[] = {
253 make_sync_handler (zm), 247 GNUNET_MQ_hd_fixed_size (sync,
254 make_result_handler (zm), 248 GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_SYNC,
249 struct GNUNET_MessageHeader,
250 zm),
251 GNUNET_MQ_hd_var_size (result,
252 GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT,
253 struct RecordResultMessage,
254 zm),
255 GNUNET_MQ_handler_end () 255 GNUNET_MQ_handler_end ()
256 }; 256 };
257 struct GNUNET_MQ_Envelope *env; 257 struct GNUNET_MQ_Envelope *env;