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/psycstore | |
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/psycstore')
-rw-r--r-- | src/psycstore/psycstore_api.c | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/src/psycstore/psycstore_api.c b/src/psycstore/psycstore_api.c index 89be19a42..7bbf2e3d8 100644 --- a/src/psycstore/psycstore_api.c +++ b/src/psycstore/psycstore_api.c | |||
@@ -323,27 +323,23 @@ do_connect (struct GNUNET_PSYCSTORE_Handle *h) | |||
323 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 323 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
324 | "Connecting to PSYCstore service.\n"); | 324 | "Connecting to PSYCstore service.\n"); |
325 | 325 | ||
326 | GNUNET_MQ_hd_var_size (result_code, | ||
327 | GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_CODE, | ||
328 | struct OperationResult); | ||
329 | |||
330 | GNUNET_MQ_hd_fixed_size (result_counters, | ||
331 | GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_COUNTERS, | ||
332 | struct CountersResult); | ||
333 | |||
334 | GNUNET_MQ_hd_var_size (result_fragment, | ||
335 | GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_FRAGMENT, | ||
336 | struct FragmentResult); | ||
337 | |||
338 | GNUNET_MQ_hd_var_size (result_state, | ||
339 | GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_STATE, | ||
340 | struct StateResult); | ||
341 | |||
342 | struct GNUNET_MQ_MessageHandler handlers[] = { | 326 | struct GNUNET_MQ_MessageHandler handlers[] = { |
343 | make_result_code_handler (h), | 327 | GNUNET_MQ_hd_var_size (result_code, |
344 | make_result_counters_handler (h), | 328 | GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_CODE, |
345 | make_result_fragment_handler (h), | 329 | struct OperationResult, |
346 | make_result_state_handler (h), | 330 | h), |
331 | GNUNET_MQ_hd_fixed_size (result_counters, | ||
332 | GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_COUNTERS, | ||
333 | struct CountersResult, | ||
334 | h), | ||
335 | GNUNET_MQ_hd_var_size (result_fragment, | ||
336 | GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_FRAGMENT, | ||
337 | struct FragmentResult, | ||
338 | h), | ||
339 | GNUNET_MQ_hd_var_size (result_state, | ||
340 | GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_STATE, | ||
341 | struct StateResult, | ||
342 | h), | ||
347 | GNUNET_MQ_handler_end () | 343 | GNUNET_MQ_handler_end () |
348 | }; | 344 | }; |
349 | 345 | ||