From 7f937e3781f36538d9864fa841822eecdaf0bf27 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Thu, 18 Aug 2016 00:03:29 +0000 Subject: Use statement exprs instead of local function This change lets us compile with clang again. --- src/transport/transport_api_hello_get.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/transport/transport_api_hello_get.c') diff --git a/src/transport/transport_api_hello_get.c b/src/transport/transport_api_hello_get.c index ec7b544d6..9c3a3e786 100644 --- a/src/transport/transport_api_hello_get.c +++ b/src/transport/transport_api_hello_get.c @@ -167,12 +167,12 @@ mq_error_handler (void *cls, static void reconnect (void *cls) { - GNUNET_MQ_hd_var_size (hello, - GNUNET_MESSAGE_TYPE_HELLO, - struct GNUNET_MessageHeader); struct GNUNET_TRANSPORT_HelloGetHandle *ghh = cls; struct GNUNET_MQ_MessageHandler handlers[] = { - make_hello_handler (ghh), + GNUNET_MQ_hd_var_size (hello, + GNUNET_MESSAGE_TYPE_HELLO, + struct GNUNET_MessageHeader, + ghh), GNUNET_MQ_handler_end () }; struct GNUNET_MQ_Envelope *env; -- cgit v1.2.3