aboutsummaryrefslogtreecommitdiff
path: root/src/arm/arm_monitor_api.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/arm/arm_monitor_api.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/arm/arm_monitor_api.c')
-rw-r--r--src/arm/arm_monitor_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arm/arm_monitor_api.c b/src/arm/arm_monitor_api.c
index 442320fe8..471393c7e 100644
--- a/src/arm/arm_monitor_api.c
+++ b/src/arm/arm_monitor_api.c
@@ -198,11 +198,11 @@ mq_error_handler (void *cls,
198static int 198static int
199reconnect_arm_monitor (struct GNUNET_ARM_MonitorHandle *h) 199reconnect_arm_monitor (struct GNUNET_ARM_MonitorHandle *h)
200{ 200{
201 GNUNET_MQ_hd_var_size (monitor_notify,
202 GNUNET_MESSAGE_TYPE_ARM_STATUS,
203 struct GNUNET_ARM_StatusMessage);
204 struct GNUNET_MQ_MessageHandler handlers[] = { 201 struct GNUNET_MQ_MessageHandler handlers[] = {
205 make_monitor_notify_handler (h), 202 GNUNET_MQ_hd_var_size (monitor_notify,
203 GNUNET_MESSAGE_TYPE_ARM_STATUS,
204 struct GNUNET_ARM_StatusMessage,
205 h),
206 GNUNET_MQ_handler_end () 206 GNUNET_MQ_handler_end ()
207 }; 207 };
208 struct GNUNET_MessageHeader *msg; 208 struct GNUNET_MessageHeader *msg;