diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-20 20:24:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-20 20:24:29 +0000 |
commit | 5f87229da63274cacd6711cce3ad340dfc468569 (patch) | |
tree | 60f7390bcc419035aed272bcc2bcfaff95bd9306 /src/revocation/test_revocation.c | |
parent | b55a742ce90f56f266f16172ccbc85180590b4b1 (diff) | |
download | gnunet-5f87229da63274cacd6711cce3ad340dfc468569.tar.gz gnunet-5f87229da63274cacd6711cce3ad340dfc468569.zip |
convering revocation_api.c to new MQ API
Diffstat (limited to 'src/revocation/test_revocation.c')
-rw-r--r-- | src/revocation/test_revocation.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/revocation/test_revocation.c b/src/revocation/test_revocation.c index 6d6db1b5c..e63486c8d 100644 --- a/src/revocation/test_revocation.c +++ b/src/revocation/test_revocation.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2009, 2013 GNUnet e.V. | 3 | Copyright (C) 2009, 2013, 2016 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -260,11 +260,12 @@ identity_connect_adapter (void *cls, | |||
260 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 260 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
261 | { | 261 | { |
262 | struct TestPeer *me = cls; | 262 | struct TestPeer *me = cls; |
263 | |||
263 | me->cfg = cfg; | 264 | me->cfg = cfg; |
264 | me->idh = GNUNET_IDENTITY_connect (cfg, NULL, NULL ); | 265 | me->idh = GNUNET_IDENTITY_connect (cfg, NULL, NULL); |
265 | if (NULL == me->idh) | 266 | if (NULL == me->idh) |
266 | GNUNET_log(GNUNET_ERROR_TYPE_ERROR, | 267 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
267 | "Failed to create IDENTITY handle \n"); | 268 | "Failed to create IDENTITY handle \n"); |
268 | return me->idh; | 269 | return me->idh; |
269 | } | 270 | } |
270 | 271 | ||
@@ -367,9 +368,8 @@ test_connection (void *cls, | |||
367 | { | 368 | { |
368 | unsigned int c; | 369 | unsigned int c; |
369 | 370 | ||
370 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, | 371 | GNUNET_SCHEDULER_add_shutdown (&do_shutdown, |
371 | &do_shutdown, NULL); | 372 | NULL); |
372 | |||
373 | if (NUM_TEST_PEERS != num_peers) | 373 | if (NUM_TEST_PEERS != num_peers) |
374 | { | 374 | { |
375 | ok = 4; | 375 | ok = 4; |