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/hostlist/gnunet-daemon-hostlist.c | |
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/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index 44db59949..7181a913b 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c | |||
@@ -296,11 +296,11 @@ run (void *cls, | |||
296 | const char *cfgfile, | 296 | const char *cfgfile, |
297 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 297 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
298 | { | 298 | { |
299 | GNUNET_MQ_hd_var_size (advertisement, | ||
300 | GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT, | ||
301 | struct GNUNET_MessageHeader); | ||
302 | struct GNUNET_MQ_MessageHandler learn_handlers[] = { | 299 | struct GNUNET_MQ_MessageHandler learn_handlers[] = { |
303 | make_advertisement_handler (NULL), | 300 | GNUNET_MQ_hd_var_size (advertisement, |
301 | GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT, | ||
302 | struct GNUNET_MessageHeader, | ||
303 | NULL), | ||
304 | GNUNET_MQ_handler_end () | 304 | GNUNET_MQ_handler_end () |
305 | }; | 305 | }; |
306 | struct GNUNET_MQ_MessageHandler no_learn_handlers[] = { | 306 | struct GNUNET_MQ_MessageHandler no_learn_handlers[] = { |