diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 16:34:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 16:34:31 +0000 |
commit | 6e3599bab213760c66f13f6103ebf650bbe5b7e9 (patch) | |
tree | f56a0bbe3ce64c818c87bae6171ba800ab05b701 /src/core/test_core_quota_compliance.c | |
parent | 2c0a286c8c29e135c68556658b6ac6cef48a874a (diff) | |
download | gnunet-6e3599bab213760c66f13f6103ebf650bbe5b7e9.tar.gz gnunet-6e3599bab213760c66f13f6103ebf650bbe5b7e9.zip |
migrate transport_core API to MQ
Diffstat (limited to 'src/core/test_core_quota_compliance.c')
-rw-r--r-- | src/core/test_core_quota_compliance.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index 05b1ae3d9..28d836e2e 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c | |||
@@ -547,14 +547,14 @@ process_hello (void *cls, const struct GNUNET_MessageHeader *message) | |||
547 | p->hello = GNUNET_malloc (ntohs (message->size)); | 547 | p->hello = GNUNET_malloc (ntohs (message->size)); |
548 | memcpy (p->hello, message, ntohs (message->size)); | 548 | memcpy (p->hello, message, ntohs (message->size)); |
549 | if ((p == &p1) && (p2.th != NULL)) | 549 | if ((p == &p1) && (p2.th != NULL)) |
550 | GNUNET_TRANSPORT_offer_hello (p2.th, message, NULL, NULL); | 550 | GNUNET_TRANSPORT_offer_hello (p2.cfg, message, NULL, NULL); |
551 | if ((p == &p2) && (p1.th != NULL)) | 551 | if ((p == &p2) && (p1.th != NULL)) |
552 | GNUNET_TRANSPORT_offer_hello (p1.th, message, NULL, NULL); | 552 | GNUNET_TRANSPORT_offer_hello (p1.cfg, message, NULL, NULL); |
553 | 553 | ||
554 | if ((p == &p1) && (p2.hello != NULL)) | 554 | if ((p == &p1) && (p2.hello != NULL)) |
555 | GNUNET_TRANSPORT_offer_hello (p1.th, p2.hello, NULL, NULL); | 555 | GNUNET_TRANSPORT_offer_hello (p1.cfg, p2.hello, NULL, NULL); |
556 | if ((p == &p2) && (p1.hello != NULL)) | 556 | if ((p == &p2) && (p1.hello != NULL)) |
557 | GNUNET_TRANSPORT_offer_hello (p2.th, p1.hello, NULL, NULL); | 557 | GNUNET_TRANSPORT_offer_hello (p2.cfg, p1.hello, NULL, NULL); |
558 | } | 558 | } |
559 | 559 | ||
560 | 560 | ||
@@ -579,7 +579,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
579 | GNUNET_assert (p->th != NULL); | 579 | GNUNET_assert (p->th != NULL); |
580 | p->ats = GNUNET_ATS_connectivity_init (p->cfg); | 580 | p->ats = GNUNET_ATS_connectivity_init (p->cfg); |
581 | GNUNET_assert (NULL != p->ats); | 581 | GNUNET_assert (NULL != p->ats); |
582 | p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); | 582 | p->ghh = GNUNET_TRANSPORT_get_hello (p->cfg, &process_hello, p); |
583 | GNUNET_free (binary); | 583 | GNUNET_free (binary); |
584 | } | 584 | } |
585 | 585 | ||