aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-06-09 14:53:44 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-06-09 14:53:44 +0000
commit29b0ccdefe35bd9d5ea8856328ef288030a65594 (patch)
treeadb1da7611b0afd6ff0fa094a6f6bc7ebabd174e /src/testing
parent3acc63504fe636a6e61b1b2ab36548ac5bf90d04 (diff)
-simplifying core API (#2400)
git-svn-id: https://gnunet.org/svn/gnunet@21816 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/test_testing_large_topology.c4
-rw-r--r--src/testing/test_testing_topology.c4
-rw-r--r--src/testing/testing.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/testing/test_testing_large_topology.c b/src/testing/test_testing_large_topology.c
index d126ab9405..cd80db1956 100644
--- a/src/testing/test_testing_large_topology.c
+++ b/src/testing/test_testing_large_topology.c
@@ -564,7 +564,7 @@ init_notify_peer1 (void *cls, struct GNUNET_CORE_Handle *server,
* Connect to the receiving peer
*/
pos->peer2handle =
- GNUNET_CORE_connect (pos->peer2->cfg, 1, pos, &init_notify_peer2, NULL,
+ GNUNET_CORE_connect (pos->peer2->cfg, pos, &init_notify_peer2, NULL,
NULL, NULL, NULL, GNUNET_YES, NULL, GNUNET_YES,
handlers);
@@ -603,7 +603,7 @@ send_test_messages (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
* Connect to the sending peer
*/
pos->peer1handle =
- GNUNET_CORE_connect (pos->peer1->cfg, 1, pos, &init_notify_peer1,
+ GNUNET_CORE_connect (pos->peer1->cfg, pos, &init_notify_peer1,
&connect_notify_peers, NULL, NULL, NULL, GNUNET_NO,
NULL, GNUNET_NO, no_handlers);
diff --git a/src/testing/test_testing_topology.c b/src/testing/test_testing_topology.c
index b21654483f..94cbc0df64 100644
--- a/src/testing/test_testing_topology.c
+++ b/src/testing/test_testing_topology.c
@@ -585,7 +585,7 @@ init_notify_peer1 (void *cls, struct GNUNET_CORE_Handle *server,
* Connect to the receiving peer
*/
pos->peer2handle =
- GNUNET_CORE_connect (pos->peer2->cfg, 1, pos, &init_notify_peer2, NULL,
+ GNUNET_CORE_connect (pos->peer2->cfg, pos, &init_notify_peer2, NULL,
NULL, NULL, GNUNET_YES, NULL, GNUNET_YES, handlers);
}
@@ -623,7 +623,7 @@ send_test_messages (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
* Connect to the sending peer
*/
pos->peer1handle =
- GNUNET_CORE_connect (pos->peer1->cfg, 1, pos, &init_notify_peer1,
+ GNUNET_CORE_connect (pos->peer1->cfg, pos, &init_notify_peer1,
&connect_notify_peers, NULL, NULL, GNUNET_NO, NULL,
GNUNET_NO, no_handlers);
diff --git a/src/testing/testing.c b/src/testing/testing.c
index 31bea068cf..a80ad25cf6 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -1911,7 +1911,7 @@ reattempt_daemons_connect (void *cls,
GNUNET_assert (ctx->d1core == NULL);
ctx->d1core_ready = GNUNET_NO;
ctx->d1core =
- GNUNET_CORE_connect (ctx->d1->cfg, 1, ctx, &core_init_notify,
+ GNUNET_CORE_connect (ctx->d1->cfg, ctx, &core_init_notify,
&connect_notify, NULL, NULL, GNUNET_NO, NULL,
GNUNET_NO, no_handlers);
if (ctx->d1core == NULL)
@@ -2055,7 +2055,7 @@ core_initial_iteration (void *cls, const struct GNUNET_PeerIdentity *peer,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Peers are NOT connected, connecting to core!\n");
ctx->d1core =
- GNUNET_CORE_connect (ctx->d1->cfg, 1, ctx, &core_init_notify,
+ GNUNET_CORE_connect (ctx->d1->cfg, ctx, &core_init_notify,
&connect_notify, NULL, NULL, GNUNET_NO, NULL,
GNUNET_NO, no_handlers);
}