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/core/test_core_api.c | |
parent | 006eb1c4f3307fe89c786c2f1ac866611e33d3cd (diff) | |
download | gnunet-7ae3bcd234e062c28f66db9758f61af401d0a707.tar.gz gnunet-7ae3bcd234e062c28f66db9758f61af401d0a707.zip |
-simplifying core API (#2400)
Diffstat (limited to 'src/core/test_core_api.c')
-rw-r--r-- | src/core/test_core_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index 37d166983..d1591328f 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c | |||
@@ -299,7 +299,7 @@ init_notify (void *cls, struct GNUNET_CORE_Handle *server, | |||
299 | OKPP; | 299 | OKPP; |
300 | /* connect p2 */ | 300 | /* connect p2 */ |
301 | p2.ch = | 301 | p2.ch = |
302 | GNUNET_CORE_connect (p2.cfg, 1, &p2, &init_notify, &connect_notify, | 302 | GNUNET_CORE_connect (p2.cfg, &p2, &init_notify, &connect_notify, |
303 | &disconnect_notify, &inbound_notify, GNUNET_YES, | 303 | &disconnect_notify, &inbound_notify, GNUNET_YES, |
304 | &outbound_notify, GNUNET_YES, handlers); | 304 | &outbound_notify, GNUNET_YES, handlers); |
305 | } | 305 | } |
@@ -346,7 +346,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
346 | (GNUNET_TIME_UNIT_SECONDS, 300), | 346 | (GNUNET_TIME_UNIT_SECONDS, 300), |
347 | &terminate_task_error, NULL); | 347 | &terminate_task_error, NULL); |
348 | p1.ch = | 348 | p1.ch = |
349 | GNUNET_CORE_connect (p1.cfg, 1, &p1, &init_notify, &connect_notify, | 349 | GNUNET_CORE_connect (p1.cfg, &p1, &init_notify, &connect_notify, |
350 | &disconnect_notify, &inbound_notify, GNUNET_YES, | 350 | &disconnect_notify, &inbound_notify, GNUNET_YES, |
351 | &outbound_notify, GNUNET_YES, handlers); | 351 | &outbound_notify, GNUNET_YES, handlers); |
352 | } | 352 | } |