aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht_api.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2016-08-18 00:03:29 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2016-08-18 00:03:29 +0000
commit7f937e3781f36538d9864fa841822eecdaf0bf27 (patch)
tree318eb592dae2bbf59d094f5df140c24a4b6184c9 /src/dht/dht_api.c
parent94a717fab18ed25e6bec4b349526212045f6ca70 (diff)
downloadgnunet-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/dht/dht_api.c')
-rw-r--r--src/dht/dht_api.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c
index 0ada41662..57880165e 100644
--- a/src/dht/dht_api.c
+++ b/src/dht/dht_api.c
@@ -842,27 +842,27 @@ handle_put_confirmation (void *cls,
842static int 842static int
843try_connect (struct GNUNET_DHT_Handle *h) 843try_connect (struct GNUNET_DHT_Handle *h)
844{ 844{
845 GNUNET_MQ_hd_var_size (monitor_get,
846 GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET,
847 struct GNUNET_DHT_MonitorGetMessage);
848 GNUNET_MQ_hd_var_size (monitor_get_resp,
849 GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET_RESP,
850 struct GNUNET_DHT_MonitorGetRespMessage);
851 GNUNET_MQ_hd_var_size (monitor_put,
852 GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT,
853 struct GNUNET_DHT_MonitorPutMessage);
854 GNUNET_MQ_hd_var_size (client_result,
855 GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT,
856 struct GNUNET_DHT_ClientResultMessage);
857 GNUNET_MQ_hd_fixed_size (put_confirmation,
858 GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK,
859 struct GNUNET_DHT_ClientPutConfirmationMessage);
860 struct GNUNET_MQ_MessageHandler handlers[] = { 845 struct GNUNET_MQ_MessageHandler handlers[] = {
861 make_monitor_get_handler (h), 846 GNUNET_MQ_hd_var_size (monitor_get,
862 make_monitor_get_resp_handler (h), 847 GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET,
863 make_monitor_put_handler (h), 848 struct GNUNET_DHT_MonitorGetMessage,
864 make_client_result_handler (h), 849 h),
865 make_put_confirmation_handler (h), 850 GNUNET_MQ_hd_var_size (monitor_get_resp,
851 GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET_RESP,
852 struct GNUNET_DHT_MonitorGetRespMessage,
853 h),
854 GNUNET_MQ_hd_var_size (monitor_put,
855 GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT,
856 struct GNUNET_DHT_MonitorPutMessage,
857 h),
858 GNUNET_MQ_hd_var_size (client_result,
859 GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT,
860 struct GNUNET_DHT_ClientResultMessage,
861 h),
862 GNUNET_MQ_hd_fixed_size (put_confirmation,
863 GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK,
864 struct GNUNET_DHT_ClientPutConfirmationMessage,
865 h),
866 GNUNET_MQ_handler_end () 866 GNUNET_MQ_handler_end ()
867 }; 867 };
868 if (NULL != h->mq) 868 if (NULL != h->mq)