aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-service-revocation.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/revocation/gnunet-service-revocation.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/revocation/gnunet-service-revocation.c')
-rw-r--r--src/revocation/gnunet-service-revocation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c
index 0f67977a1..706432ece 100644
--- a/src/revocation/gnunet-service-revocation.c
+++ b/src/revocation/gnunet-service-revocation.c
@@ -777,9 +777,6 @@ run (void *cls,
777 struct GNUNET_SERVER_Handle *server, 777 struct GNUNET_SERVER_Handle *server,
778 const struct GNUNET_CONFIGURATION_Handle *c) 778 const struct GNUNET_CONFIGURATION_Handle *c)
779{ 779{
780 GNUNET_MQ_hd_fixed_size (p2p_revoke,
781 GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE,
782 struct RevokeMessage);
783 static const struct GNUNET_SERVER_MessageHandler handlers[] = { 780 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
784 {&handle_query_message, NULL, GNUNET_MESSAGE_TYPE_REVOCATION_QUERY, 781 {&handle_query_message, NULL, GNUNET_MESSAGE_TYPE_REVOCATION_QUERY,
785 sizeof (struct QueryMessage)}, 782 sizeof (struct QueryMessage)},
@@ -788,7 +785,10 @@ run (void *cls,
788 {NULL, NULL, 0, 0} 785 {NULL, NULL, 0, 0}
789 }; 786 };
790 struct GNUNET_MQ_MessageHandler core_handlers[] = { 787 struct GNUNET_MQ_MessageHandler core_handlers[] = {
791 make_p2p_revoke_handler (NULL), 788 GNUNET_MQ_hd_fixed_size (p2p_revoke,
789 GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE,
790 struct RevokeMessage,
791 NULL),
792 GNUNET_MQ_handler_end () 792 GNUNET_MQ_handler_end ()
793 }; 793 };
794 char *fn; 794 char *fn;