diff options
Diffstat (limited to 'src/revocation/test_revocation.c')
-rw-r--r-- | src/revocation/test_revocation.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/revocation/test_revocation.c b/src/revocation/test_revocation.c index e63486c8d..ba659d9d8 100644 --- a/src/revocation/test_revocation.c +++ b/src/revocation/test_revocation.c | |||
@@ -280,9 +280,10 @@ identity_disconnect_adapter (void *cls, | |||
280 | } | 280 | } |
281 | 281 | ||
282 | 282 | ||
283 | static void | 283 | static void * |
284 | connect_cb (void *cls, | 284 | connect_cb (void *cls, |
285 | const struct GNUNET_PeerIdentity *peer) | 285 | const struct GNUNET_PeerIdentity *peer, |
286 | struct GNUNET_MQ_Handle *mq) | ||
286 | { | 287 | { |
287 | static int connects = 0; | 288 | static int connects = 0; |
288 | 289 | ||
@@ -308,6 +309,7 @@ connect_cb (void *cls, | |||
308 | &identity_disconnect_adapter, | 309 | &identity_disconnect_adapter, |
309 | &testpeers[1]); | 310 | &testpeers[1]); |
310 | } | 311 | } |
312 | return NULL; | ||
311 | } | 313 | } |
312 | 314 | ||
313 | 315 | ||
@@ -335,10 +337,11 @@ core_connect_adapter (void *cls, | |||
335 | struct TestPeer *me = cls; | 337 | struct TestPeer *me = cls; |
336 | 338 | ||
337 | me->cfg = cfg; | 339 | me->cfg = cfg; |
338 | me->ch = GNUNET_CORE_connect (cfg, me, NULL, | 340 | me->ch = GNUNET_CORE_connecT (cfg, |
339 | &connect_cb, NULL, | 341 | me, |
340 | NULL, GNUNET_NO, | 342 | NULL, |
341 | NULL, GNUNET_NO, | 343 | &connect_cb, |
344 | NULL, | ||
342 | NULL); | 345 | NULL); |
343 | if (NULL == me->ch) | 346 | if (NULL == me->ch) |
344 | GNUNET_log(GNUNET_ERROR_TYPE_ERROR, | 347 | GNUNET_log(GNUNET_ERROR_TYPE_ERROR, |
@@ -353,7 +356,7 @@ core_disconnect_adapter (void *cls, | |||
353 | { | 356 | { |
354 | struct TestPeer *me = cls; | 357 | struct TestPeer *me = cls; |
355 | 358 | ||
356 | GNUNET_CORE_disconnect (me->ch); | 359 | GNUNET_CORE_disconnecT (me->ch); |
357 | me->ch = NULL; | 360 | me->ch = NULL; |
358 | } | 361 | } |
359 | 362 | ||