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/topology/gnunet-daemon-topology.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/topology/gnunet-daemon-topology.c')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index f56cd4bc8..69f01e043 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -1147,11 +1147,11 @@ run (void *cls, | |||
1147 | const char *cfgfile, | 1147 | const char *cfgfile, |
1148 | const struct GNUNET_CONFIGURATION_Handle *c) | 1148 | const struct GNUNET_CONFIGURATION_Handle *c) |
1149 | { | 1149 | { |
1150 | GNUNET_MQ_hd_var_size (hello, | ||
1151 | GNUNET_MESSAGE_TYPE_HELLO, | ||
1152 | struct GNUNET_HELLO_Message); | ||
1153 | struct GNUNET_MQ_MessageHandler handlers[] = { | 1150 | struct GNUNET_MQ_MessageHandler handlers[] = { |
1154 | make_hello_handler (NULL), | 1151 | GNUNET_MQ_hd_var_size (hello, |
1152 | GNUNET_MESSAGE_TYPE_HELLO, | ||
1153 | struct GNUNET_HELLO_Message, | ||
1154 | NULL), | ||
1155 | GNUNET_MQ_handler_end () | 1155 | GNUNET_MQ_handler_end () |
1156 | }; | 1156 | }; |
1157 | unsigned long long opt; | 1157 | unsigned long long opt; |