diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-09 14:53:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-09 14:53:44 +0000 |
commit | 7ae3bcd234e062c28f66db9758f61af401d0a707 (patch) | |
tree | adb1da7611b0afd6ff0fa094a6f6bc7ebabd174e /src/hostlist | |
parent | 006eb1c4f3307fe89c786c2f1ac866611e33d3cd (diff) | |
download | gnunet-7ae3bcd234e062c28f66db9758f61af401d0a707.tar.gz gnunet-7ae3bcd234e062c28f66db9758f61af401d0a707.zip |
-simplifying core API (#2400)
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist.c | 2 | ||||
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_learning.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index 0eedb56b1..8b7bf3a3e 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c | |||
@@ -270,7 +270,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
270 | stats = GNUNET_STATISTICS_create ("hostlist", cfg); | 270 | stats = GNUNET_STATISTICS_create ("hostlist", cfg); |
271 | 271 | ||
272 | core = | 272 | core = |
273 | GNUNET_CORE_connect (cfg, 1, NULL, &core_init, &connect_handler, | 273 | GNUNET_CORE_connect (cfg, NULL, &core_init, &connect_handler, |
274 | &disconnect_handler, NULL, GNUNET_NO, NULL, | 274 | &disconnect_handler, NULL, GNUNET_NO, NULL, |
275 | GNUNET_NO, | 275 | GNUNET_NO, |
276 | learning ? learn_handlers : no_learn_handlers); | 276 | learning ? learn_handlers : no_learn_handlers); |
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index 08ab0dedb..b7d96687c 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c | |||
@@ -411,7 +411,7 @@ setup_learn_peer (struct PeerContext *p, const char *cfgname) | |||
411 | GNUNET_free (filename); | 411 | GNUNET_free (filename); |
412 | } | 412 | } |
413 | p->core = | 413 | p->core = |
414 | GNUNET_CORE_connect (p->cfg, 1, NULL, NULL, NULL, NULL, NULL, GNUNET_NO, | 414 | GNUNET_CORE_connect (p->cfg, NULL, NULL, NULL, NULL, NULL, GNUNET_NO, |
415 | NULL, GNUNET_NO, learn_handlers); | 415 | NULL, GNUNET_NO, learn_handlers); |
416 | GNUNET_assert (NULL != p->core); | 416 | GNUNET_assert (NULL != p->core); |
417 | p->stats = GNUNET_STATISTICS_create ("hostlist", p->cfg); | 417 | p->stats = GNUNET_STATISTICS_create ("hostlist", p->cfg); |