aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c2
-rw-r--r--src/hostlist/hostlist-server.c8
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist_learning.c14
3 files changed, 10 insertions, 14 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index ffeff0882..52c996aed 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -274,7 +274,7 @@ run (void *cls,
274 GNUNET_TIME_UNIT_FOREVER_REL, 274 GNUNET_TIME_UNIT_FOREVER_REL,
275 NULL, 275 NULL,
276 &core_init, 276 &core_init,
277 &connect_handler, &disconnect_handler, 277 &connect_handler, &disconnect_handler, NULL,
278 NULL, GNUNET_NO, 278 NULL, GNUNET_NO,
279 NULL, GNUNET_NO, 279 NULL, GNUNET_NO,
280 learning? learn_handlers : no_learn_handlers); 280 learning? learn_handlers : no_learn_handlers);
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c
index 58daf0401..87fae74e3 100644
--- a/src/hostlist/hostlist-server.c
+++ b/src/hostlist/hostlist-server.c
@@ -183,8 +183,7 @@ check_has_addr (void *cls,
183static void 183static void
184host_processor (void *cls, 184host_processor (void *cls,
185 const struct GNUNET_PeerIdentity * peer, 185 const struct GNUNET_PeerIdentity * peer,
186 const struct GNUNET_HELLO_Message *hello, 186 const struct GNUNET_HELLO_Message *hello)
187 uint32_t trust)
188{ 187{
189 struct HostSet *results = cls; 188 struct HostSet *results = cls;
190 size_t old; 189 size_t old;
@@ -447,13 +446,11 @@ disconnect_handler (void *cls,
447 * @param cls closure (not used) 446 * @param cls closure (not used)
448 * @param peer potential peer to connect to 447 * @param peer potential peer to connect to
449 * @param hello HELLO for this peer (or NULL) 448 * @param hello HELLO for this peer (or NULL)
450 * @param trust how much we trust the peer (not used)
451 */ 449 */
452static void 450static void
453process_notify (void *cls, 451process_notify (void *cls,
454 const struct GNUNET_PeerIdentity *peer, 452 const struct GNUNET_PeerIdentity *peer,
455 const struct GNUNET_HELLO_Message *hello, 453 const struct GNUNET_HELLO_Message *hello)
456 uint32_t trust)
457{ 454{
458 struct HostSet *results; 455 struct HostSet *results;
459#if DEBUG_HOSTLIST_SERVER 456#if DEBUG_HOSTLIST_SERVER
@@ -464,7 +461,6 @@ process_notify (void *cls,
464 GNUNET_assert (peerinfo != NULL); 461 GNUNET_assert (peerinfo != NULL);
465 pitr = GNUNET_PEERINFO_iterate (peerinfo, 462 pitr = GNUNET_PEERINFO_iterate (peerinfo,
466 NULL, 463 NULL,
467 0,
468 GNUNET_TIME_UNIT_MINUTES, 464 GNUNET_TIME_UNIT_MINUTES,
469 &host_processor, 465 &host_processor,
470 results); 466 results);
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
index 96390373f..d1a04ffe8 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
@@ -383,13 +383,13 @@ setup_learn_peer (struct PeerContext *p, const char *cfgname)
383 if ( NULL != filename) GNUNET_free ( filename ); 383 if ( NULL != filename) GNUNET_free ( filename );
384 384
385 p->core = GNUNET_CORE_connect (sched, p->cfg, 385 p->core = GNUNET_CORE_connect (sched, p->cfg,
386 GNUNET_TIME_UNIT_FOREVER_REL, 386 GNUNET_TIME_UNIT_FOREVER_REL,
387 NULL, 387 NULL,
388 NULL, 388 NULL,
389 NULL, NULL, 389 NULL, NULL, NULL,
390 NULL, GNUNET_NO, 390 NULL, GNUNET_NO,
391 NULL, GNUNET_NO, 391 NULL, GNUNET_NO,
392 learn_handlers ); 392 learn_handlers );
393 GNUNET_assert ( NULL != p->core ); 393 GNUNET_assert ( NULL != p->core );
394 p->stats = GNUNET_STATISTICS_create (sched, "hostlist", p->cfg); 394 p->stats = GNUNET_STATISTICS_create (sched, "hostlist", p->cfg);
395 GNUNET_assert ( NULL != p->stats ); 395 GNUNET_assert ( NULL != p->stats );