aboutsummaryrefslogtreecommitdiff
path: root/src/identity/identity_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/identity/identity_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/identity/identity_api.c')
-rw-r--r--src/identity/identity_api.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 4c8a35dc2..dd61fdfb4 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -552,20 +552,20 @@ handle_identity_set_default (void *cls,
552static void 552static void
553reconnect (void *cls) 553reconnect (void *cls)
554{ 554{
555 GNUNET_MQ_hd_var_size (identity_result_code,
556 GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE,
557 struct GNUNET_IDENTITY_ResultCodeMessage);
558 GNUNET_MQ_hd_var_size (identity_update,
559 GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE,
560 struct GNUNET_IDENTITY_UpdateMessage);
561 GNUNET_MQ_hd_var_size (identity_set_default,
562 GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT,
563 struct GNUNET_IDENTITY_SetDefaultMessage);
564 struct GNUNET_IDENTITY_Handle *h = cls; 555 struct GNUNET_IDENTITY_Handle *h = cls;
565 struct GNUNET_MQ_MessageHandler handlers[] = { 556 struct GNUNET_MQ_MessageHandler handlers[] = {
566 make_identity_result_code_handler (h), 557 GNUNET_MQ_hd_var_size (identity_result_code,
567 make_identity_update_handler (h), 558 GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE,
568 make_identity_set_default_handler (h), 559 struct GNUNET_IDENTITY_ResultCodeMessage,
560 h),
561 GNUNET_MQ_hd_var_size (identity_update,
562 GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE,
563 struct GNUNET_IDENTITY_UpdateMessage,
564 h),
565 GNUNET_MQ_hd_var_size (identity_set_default,
566 GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT,
567 struct GNUNET_IDENTITY_SetDefaultMessage,
568 h),
569 GNUNET_MQ_handler_end () 569 GNUNET_MQ_handler_end ()
570 }; 570 };
571 struct GNUNET_MQ_Envelope *env; 571 struct GNUNET_MQ_Envelope *env;