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/statistics | |
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/statistics')
-rw-r--r-- | src/statistics/statistics_api.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index 7f5a257d9..acaa1cc45 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -646,23 +646,23 @@ handle_statistics_end (void *cls, | |||
646 | static int | 646 | static int |
647 | try_connect (struct GNUNET_STATISTICS_Handle *h) | 647 | try_connect (struct GNUNET_STATISTICS_Handle *h) |
648 | { | 648 | { |
649 | GNUNET_MQ_hd_fixed_size (test, | ||
650 | GNUNET_MESSAGE_TYPE_TEST, | ||
651 | struct GNUNET_MessageHeader); | ||
652 | GNUNET_MQ_hd_fixed_size (statistics_end, | ||
653 | GNUNET_MESSAGE_TYPE_STATISTICS_END, | ||
654 | struct GNUNET_MessageHeader); | ||
655 | GNUNET_MQ_hd_var_size (statistics_value, | ||
656 | GNUNET_MESSAGE_TYPE_STATISTICS_VALUE, | ||
657 | struct GNUNET_STATISTICS_ReplyMessage); | ||
658 | GNUNET_MQ_hd_fixed_size (statistics_watch_value, | ||
659 | GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE, | ||
660 | struct GNUNET_STATISTICS_WatchValueMessage); | ||
661 | struct GNUNET_MQ_MessageHandler handlers[] = { | 649 | struct GNUNET_MQ_MessageHandler handlers[] = { |
662 | make_test_handler (h), | 650 | GNUNET_MQ_hd_fixed_size (test, |
663 | make_statistics_end_handler (h), | 651 | GNUNET_MESSAGE_TYPE_TEST, |
664 | make_statistics_value_handler (h), | 652 | struct GNUNET_MessageHeader, |
665 | make_statistics_watch_value_handler (h), | 653 | h), |
654 | GNUNET_MQ_hd_fixed_size (statistics_end, | ||
655 | GNUNET_MESSAGE_TYPE_STATISTICS_END, | ||
656 | struct GNUNET_MessageHeader, | ||
657 | h), | ||
658 | GNUNET_MQ_hd_var_size (statistics_value, | ||
659 | GNUNET_MESSAGE_TYPE_STATISTICS_VALUE, | ||
660 | struct GNUNET_STATISTICS_ReplyMessage, | ||
661 | h), | ||
662 | GNUNET_MQ_hd_fixed_size (statistics_watch_value, | ||
663 | GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE, | ||
664 | struct GNUNET_STATISTICS_WatchValueMessage, | ||
665 | h), | ||
666 | GNUNET_MQ_handler_end () | 666 | GNUNET_MQ_handler_end () |
667 | }; | 667 | }; |
668 | struct GNUNET_STATISTICS_GetHandle *gh; | 668 | struct GNUNET_STATISTICS_GetHandle *gh; |