diff options
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist_learning.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_learning.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index a71b8ecae..717311be7 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c | |||
@@ -242,7 +242,9 @@ process_adv_sent_done (void *cls, int success) | |||
242 | 242 | ||
243 | 243 | ||
244 | static int | 244 | static int |
245 | process_adv_sent (void *cls, const char *subsystem, const char *name, | 245 | process_adv_sent (void *cls, |
246 | const char *subsystem, | ||
247 | const char *name, | ||
246 | uint64_t value, int is_persistent) | 248 | uint64_t value, int is_persistent) |
247 | { | 249 | { |
248 | if ((value >= 1) && (adv_sent == GNUNET_NO)) | 250 | if ((value >= 1) && (adv_sent == GNUNET_NO)) |
@@ -267,13 +269,10 @@ static void | |||
267 | check_statistics (void *cls) | 269 | check_statistics (void *cls) |
268 | { | 270 | { |
269 | char *stat; | 271 | char *stat; |
270 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
271 | 272 | ||
272 | check_task = NULL; | 273 | check_task = NULL; |
273 | tc = GNUNET_SCHEDULER_get_task_context (); | 274 | GNUNET_asprintf (&stat, |
274 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 275 | gettext_noop ("# advertised URI `%s' downloaded"), |
275 | return; | ||
276 | GNUNET_asprintf (&stat, gettext_noop ("# advertised URI `%s' downloaded"), | ||
277 | current_adv_uri); | 276 | current_adv_uri); |
278 | if (NULL != learn_peer.stats) | 277 | if (NULL != learn_peer.stats) |
279 | { | 278 | { |
@@ -313,7 +312,8 @@ check_statistics (void *cls) | |||
313 | * Core handler for p2p hostlist advertisements | 312 | * Core handler for p2p hostlist advertisements |
314 | */ | 313 | */ |
315 | static int | 314 | static int |
316 | ad_arrive_handler (void *cls, const struct GNUNET_PeerIdentity *peer, | 315 | ad_arrive_handler (void *cls, |
316 | const struct GNUNET_PeerIdentity *peer, | ||
317 | const struct GNUNET_MessageHeader *message) | 317 | const struct GNUNET_MessageHeader *message) |
318 | { | 318 | { |
319 | char *hostname; | 319 | char *hostname; |