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/namestore | |
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/namestore')
-rw-r--r-- | src/namestore/namestore_api.c | 32 | ||||
-rw-r--r-- | src/namestore/namestore_api_monitor.c | 16 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 61d8385b6..6dc0df6fd 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -783,23 +783,23 @@ mq_error_handler (void *cls, | |||
783 | static void | 783 | static void |
784 | reconnect (struct GNUNET_NAMESTORE_Handle *h) | 784 | reconnect (struct GNUNET_NAMESTORE_Handle *h) |
785 | { | 785 | { |
786 | GNUNET_MQ_hd_fixed_size (record_store_response, | ||
787 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE, | ||
788 | struct RecordStoreResponseMessage); | ||
789 | GNUNET_MQ_hd_var_size (zone_to_name_response, | ||
790 | GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE, | ||
791 | struct ZoneToNameResponseMessage); | ||
792 | GNUNET_MQ_hd_var_size (record_result, | ||
793 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT, | ||
794 | struct RecordResultMessage); | ||
795 | GNUNET_MQ_hd_var_size (lookup_result, | ||
796 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE, | ||
797 | struct LabelLookupResponseMessage); | ||
798 | struct GNUNET_MQ_MessageHandler handlers[] = { | 786 | struct GNUNET_MQ_MessageHandler handlers[] = { |
799 | make_record_store_response_handler (h), | 787 | GNUNET_MQ_hd_fixed_size (record_store_response, |
800 | make_zone_to_name_response_handler (h), | 788 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE, |
801 | make_record_result_handler (h), | 789 | struct RecordStoreResponseMessage, |
802 | make_lookup_result_handler (h), | 790 | h), |
791 | GNUNET_MQ_hd_var_size (zone_to_name_response, | ||
792 | GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE, | ||
793 | struct ZoneToNameResponseMessage, | ||
794 | h), | ||
795 | GNUNET_MQ_hd_var_size (record_result, | ||
796 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT, | ||
797 | struct RecordResultMessage, | ||
798 | h), | ||
799 | GNUNET_MQ_hd_var_size (lookup_result, | ||
800 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE, | ||
801 | struct LabelLookupResponseMessage, | ||
802 | h), | ||
803 | GNUNET_MQ_handler_end () | 803 | GNUNET_MQ_handler_end () |
804 | }; | 804 | }; |
805 | struct GNUNET_NAMESTORE_ZoneIterator *it; | 805 | struct GNUNET_NAMESTORE_ZoneIterator *it; |
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c index 7e75b07e5..00f0887d4 100644 --- a/src/namestore/namestore_api_monitor.c +++ b/src/namestore/namestore_api_monitor.c | |||
@@ -243,15 +243,15 @@ mq_error_handler (void *cls, | |||
243 | static void | 243 | static void |
244 | reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm) | 244 | reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm) |
245 | { | 245 | { |
246 | GNUNET_MQ_hd_fixed_size (sync, | ||
247 | GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_SYNC, | ||
248 | struct GNUNET_MessageHeader); | ||
249 | GNUNET_MQ_hd_var_size (result, | ||
250 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT, | ||
251 | struct RecordResultMessage); | ||
252 | struct GNUNET_MQ_MessageHandler handlers[] = { | 246 | struct GNUNET_MQ_MessageHandler handlers[] = { |
253 | make_sync_handler (zm), | 247 | GNUNET_MQ_hd_fixed_size (sync, |
254 | make_result_handler (zm), | 248 | GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_SYNC, |
249 | struct GNUNET_MessageHeader, | ||
250 | zm), | ||
251 | GNUNET_MQ_hd_var_size (result, | ||
252 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT, | ||
253 | struct RecordResultMessage, | ||
254 | zm), | ||
255 | GNUNET_MQ_handler_end () | 255 | GNUNET_MQ_handler_end () |
256 | }; | 256 | }; |
257 | struct GNUNET_MQ_Envelope *env; | 257 | struct GNUNET_MQ_Envelope *env; |