aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/gnunet-daemon-hostlist.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-05-17 14:32:31 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-05-17 14:32:31 +0000
commite95c25e12c6f8693c400ba7272317628a0c79ef2 (patch)
tree0e550d1ac72a7ae1241a92cdc02f734a1000000e /src/hostlist/gnunet-daemon-hostlist.c
parentdf6e739886b094fd440a5b1c768d8ac789a77880 (diff)
downloadgnunet-e95c25e12c6f8693c400ba7272317628a0c79ef2.tar.gz
gnunet-e95c25e12c6f8693c400ba7272317628a0c79ef2.zip
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index 8ddca00c7..f25e4f6ca 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -75,6 +75,11 @@ static int bootstrapping;
75static int learning; 75static int learning;
76 76
77/** 77/**
78 * Our configuration.
79 */
80static const struct GNUNET_CONFIGURATION_Handle *cfg;
81
82/**
78 * Statistics handle. 83 * Statistics handle.
79 */ 84 */
80static struct GNUNET_STATISTICS_Handle *stats; 85static struct GNUNET_STATISTICS_Handle *stats;
@@ -251,6 +256,15 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
251 GNUNET_NO); 256 GNUNET_NO);
252 stats = NULL; 257 stats = NULL;
253 } 258 }
259 if (cfg != NULL)
260 {
261 GNUNET_CONFIGURATION_destroy(cfg);
262 }
263 if (tc->sched!=NULL)
264 {
265 GNUNET_SCHEDULER_shutdown (tc->sched);
266
267 }
254} 268}
255 269
256/** 270/**
@@ -297,6 +311,9 @@ run (void *cls,
297 _("None of the functions for the hostlist daemon were enabled. I have no reason to run!\n")); 311 _("None of the functions for the hostlist daemon were enabled. I have no reason to run!\n"));
298 return; 312 return;
299 } 313 }
314
315
316
300 stats = GNUNET_STATISTICS_create (sched, "hostlist", cfg); 317 stats = GNUNET_STATISTICS_create (sched, "hostlist", cfg);
301 318
302 core = GNUNET_CORE_connect (sched, cfg, 319 core = GNUNET_CORE_connect (sched, cfg,