diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-02 11:21:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-02 11:21:00 +0000 |
commit | 147d72a99e4ed0558c98fe7c9c41062ede51a68a (patch) | |
tree | f712c8aa222e53dc3e299972f3144ad92b15b180 /src/transport/test_quota_compliance.c | |
parent | 8439fe12f24ab3ae5a1821face2b79d443fa044e (diff) | |
download | gnunet-147d72a99e4ed0558c98fe7c9c41062ede51a68a.tar.gz gnunet-147d72a99e4ed0558c98fe7c9c41062ede51a68a.zip |
cleanup API for get_hello and get_hello_cancel
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r-- | src/transport/test_quota_compliance.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 71332bf36..63bd7da02 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c | |||
@@ -601,8 +601,8 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
601 | GNUNET_SCHEDULER_cancel (tct); | 601 | GNUNET_SCHEDULER_cancel (tct); |
602 | tct = GNUNET_SCHEDULER_NO_TASK; | 602 | tct = GNUNET_SCHEDULER_NO_TASK; |
603 | } | 603 | } |
604 | GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, &p2); | 604 | GNUNET_TRANSPORT_get_hello_cancel (p2.ghh); |
605 | GNUNET_TRANSPORT_get_hello_cancel (p1.th, &exchange_hello, &p1); | 605 | GNUNET_TRANSPORT_get_hello_cancel (p1.ghh); |
606 | if (is_asymmetric_send_constant == GNUNET_YES) | 606 | if (is_asymmetric_send_constant == GNUNET_YES) |
607 | measure (MEASUREMENT_MIN_QUOTA, MEASUREMENT_MAX_QUOTA); | 607 | measure (MEASUREMENT_MIN_QUOTA, MEASUREMENT_MAX_QUOTA); |
608 | else if (is_asymmetric_recv_constant == GNUNET_YES) | 608 | else if (is_asymmetric_recv_constant == GNUNET_YES) |
@@ -776,8 +776,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
776 | 776 | ||
777 | GNUNET_assert (p1.th != NULL); | 777 | GNUNET_assert (p1.th != NULL); |
778 | GNUNET_assert (p2.th != NULL); | 778 | GNUNET_assert (p2.th != NULL); |
779 | GNUNET_TRANSPORT_get_hello (p1.th, &exchange_hello, &p1); | 779 | p1.ghh = GNUNET_TRANSPORT_get_hello (p1.th, &exchange_hello, &p1); |
780 | GNUNET_TRANSPORT_get_hello (p2.th, &exchange_hello_last, &p2); | 780 | p2.ghh = GNUNET_TRANSPORT_get_hello (p2.th, &exchange_hello_last, &p2); |
781 | tct = GNUNET_SCHEDULER_add_now (&try_connect, NULL); | 781 | tct = GNUNET_SCHEDULER_add_now (&try_connect, NULL); |
782 | } | 782 | } |
783 | 783 | ||