aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_disconnect.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-02 11:21:00 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-02 11:21:00 +0000
commit147d72a99e4ed0558c98fe7c9c41062ede51a68a (patch)
treef712c8aa222e53dc3e299972f3144ad92b15b180 /src/transport/test_transport_api_disconnect.c
parent8439fe12f24ab3ae5a1821face2b79d443fa044e (diff)
downloadgnunet-147d72a99e4ed0558c98fe7c9c41062ede51a68a.tar.gz
gnunet-147d72a99e4ed0558c98fe7c9c41062ede51a68a.zip
cleanup API for get_hello and get_hello_cancel
Diffstat (limited to 'src/transport/test_transport_api_disconnect.c')
-rw-r--r--src/transport/test_transport_api_disconnect.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/test_transport_api_disconnect.c b/src/transport/test_transport_api_disconnect.c
index 540d3b729..a96a1a152 100644
--- a/src/transport/test_transport_api_disconnect.c
+++ b/src/transport/test_transport_api_disconnect.c
@@ -170,8 +170,8 @@ end_badly ()
170 } 170 }
171 else 171 else
172 { 172 {
173 GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, &p2); 173 GNUNET_TRANSPORT_get_hello_cancel (p2.ghh);
174 GNUNET_TRANSPORT_get_hello_cancel (p1.th, &exchange_hello, &p1); 174 GNUNET_TRANSPORT_get_hello_cancel (p1.ghh);
175 } 175 }
176 176
177 GNUNET_TRANSPORT_disconnect (p1.th); 177 GNUNET_TRANSPORT_disconnect (p1.th);
@@ -314,8 +314,8 @@ peers_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
314 314
315 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from Transport \n"); 315 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from Transport \n");
316 316
317 GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, &p2); 317 GNUNET_TRANSPORT_get_hello_cancel (p2.ghh);
318 GNUNET_TRANSPORT_get_hello_cancel (p1.th, &exchange_hello, &p1); 318 GNUNET_TRANSPORT_get_hello_cancel (p1.ghh);
319 319
320 GNUNET_TRANSPORT_disconnect (p1.th); 320 GNUNET_TRANSPORT_disconnect (p1.th);
321 p1.th = NULL; 321 p1.th = NULL;
@@ -358,8 +358,8 @@ peers_connect ()
358 GNUNET_assert (p1.th != NULL); 358 GNUNET_assert (p1.th != NULL);
359 GNUNET_assert (p2.th != NULL); 359 GNUNET_assert (p2.th != NULL);
360 360
361 GNUNET_TRANSPORT_get_hello (p1.th, &exchange_hello, &p1); 361 p1.ghh = GNUNET_TRANSPORT_get_hello (p1.th, &exchange_hello, &p1);
362 GNUNET_TRANSPORT_get_hello (p2.th, &exchange_hello_last, &p2); 362 p2.ghh = GNUNET_TRANSPORT_get_hello (p2.th, &exchange_hello_last, &p2);
363 tct = GNUNET_SCHEDULER_add_now (&try_connect, NULL); 363 tct = GNUNET_SCHEDULER_add_now (&try_connect, NULL);
364} 364}
365 365