aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/test_revocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-31 15:42:37 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-31 15:42:37 +0000
commit406c7d2d2d126c994a1fff13470b1f96439c6f9d (patch)
treedc5e7c62a706d03cee32734a19e183b9eddf88e2 /src/revocation/test_revocation.c
parent8b2a3260e6aafc2ad31c8b7bff5f7d25b57bfc14 (diff)
downloadgnunet-406c7d2d2d126c994a1fff13470b1f96439c6f9d.tar.gz
gnunet-406c7d2d2d126c994a1fff13470b1f96439c6f9d.zip
convering more services to new core MQ API
Diffstat (limited to 'src/revocation/test_revocation.c')
-rw-r--r--src/revocation/test_revocation.c17
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
283static void 283static void *
284connect_cb (void *cls, 284connect_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