aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
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/hostlist
parent94a717fab18ed25e6bec4b349526212045f6ca70 (diff)
Use statement exprs instead of local function
This change lets us compile with clang again.
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c8
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist_learning.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index 44db599492..7181a913b5 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -296,11 +296,11 @@ run (void *cls,
const char *cfgfile,
const struct GNUNET_CONFIGURATION_Handle *cfg)
{
- GNUNET_MQ_hd_var_size (advertisement,
- GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT,
- struct GNUNET_MessageHeader);
struct GNUNET_MQ_MessageHandler learn_handlers[] = {
- make_advertisement_handler (NULL),
+ GNUNET_MQ_hd_var_size (advertisement,
+ GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT,
+ struct GNUNET_MessageHeader,
+ NULL),
GNUNET_MQ_handler_end ()
};
struct GNUNET_MQ_MessageHandler no_learn_handlers[] = {
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
index 041898abd9..c39c57eb36 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
@@ -394,11 +394,11 @@ static void
setup_learn_peer (struct PeerContext *p,
const char *cfgname)
{
- GNUNET_MQ_hd_var_size (ad_arrive,
- GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT,
- struct GNUNET_MessageHeader);
struct GNUNET_MQ_MessageHandler learn_handlers[] = {
- make_ad_arrive_handler (NULL),
+ GNUNET_MQ_hd_var_size (ad_arrive,
+ GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT,
+ struct GNUNET_MessageHeader,
+ NULL),
GNUNET_MQ_handler_end ()
};
char *filename;