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/transport/gnunet-transport-profiler.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/transport/gnunet-transport-profiler.c')
-rw-r--r-- | src/transport/gnunet-transport-profiler.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/gnunet-transport-profiler.c b/src/transport/gnunet-transport-profiler.c index 6e2ac6121..dceff7e3b 100644 --- a/src/transport/gnunet-transport-profiler.c +++ b/src/transport/gnunet-transport-profiler.c | |||
@@ -509,11 +509,11 @@ run (void *cls, | |||
509 | const char *cfgfile, | 509 | const char *cfgfile, |
510 | const struct GNUNET_CONFIGURATION_Handle *mycfg) | 510 | const struct GNUNET_CONFIGURATION_Handle *mycfg) |
511 | { | 511 | { |
512 | GNUNET_MQ_hd_var_size (dummy, | ||
513 | GNUNET_MESSAGE_TYPE_DUMMY, | ||
514 | struct GNUNET_MessageHeader); | ||
515 | struct GNUNET_MQ_MessageHandler handlers[] = { | 512 | struct GNUNET_MQ_MessageHandler handlers[] = { |
516 | make_dummy_handler (NULL), | 513 | GNUNET_MQ_hd_var_size (dummy, |
514 | GNUNET_MESSAGE_TYPE_DUMMY, | ||
515 | struct GNUNET_MessageHeader, | ||
516 | NULL), | ||
517 | GNUNET_MQ_handler_end () | 517 | GNUNET_MQ_handler_end () |
518 | }; | 518 | }; |
519 | 519 | ||