diff options
Diffstat (limited to 'src/core/test_core_api_preferences.c')
-rw-r--r-- | src/core/test_core_api_preferences.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/test_core_api_preferences.c b/src/core/test_core_api_preferences.c index 8bc977df2..d3364463a 100644 --- a/src/core/test_core_api_preferences.c +++ b/src/core/test_core_api_preferences.c | |||
@@ -43,6 +43,7 @@ struct PeerContext | |||
43 | struct GNUNET_CORE_Handle *ch; | 43 | struct GNUNET_CORE_Handle *ch; |
44 | struct GNUNET_PeerIdentity id; | 44 | struct GNUNET_PeerIdentity id; |
45 | struct GNUNET_TRANSPORT_Handle *th; | 45 | struct GNUNET_TRANSPORT_Handle *th; |
46 | struct GNUNET_TRANSPORT_GetHelloHandle *ghh; | ||
46 | struct GNUNET_MessageHeader *hello; | 47 | struct GNUNET_MessageHeader *hello; |
47 | int connect_status; | 48 | int connect_status; |
48 | #if START_ARM | 49 | #if START_ARM |
@@ -86,8 +87,8 @@ terminate_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
86 | #endif | 87 | #endif |
87 | GNUNET_assert (ok == 6); | 88 | GNUNET_assert (ok == 6); |
88 | GNUNET_assert (NULL == irc); | 89 | GNUNET_assert (NULL == irc); |
89 | GNUNET_TRANSPORT_get_hello_cancel (p1.th, &process_hello, &p1); | 90 | GNUNET_TRANSPORT_get_hello_cancel (p1.ghh); |
90 | GNUNET_TRANSPORT_get_hello_cancel (p2.th, &process_hello, &p2); | 91 | GNUNET_TRANSPORT_get_hello_cancel (p2.ghh); |
91 | GNUNET_CORE_disconnect (p1.ch); | 92 | GNUNET_CORE_disconnect (p1.ch); |
92 | GNUNET_CORE_disconnect (p2.ch); | 93 | GNUNET_CORE_disconnect (p2.ch); |
93 | GNUNET_TRANSPORT_disconnect (p1.th); | 94 | GNUNET_TRANSPORT_disconnect (p1.th); |
@@ -119,8 +120,8 @@ terminate_task_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
119 | GNUNET_SCHEDULER_cancel (ask_task); | 120 | GNUNET_SCHEDULER_cancel (ask_task); |
120 | ask_task = GNUNET_SCHEDULER_NO_TASK; | 121 | ask_task = GNUNET_SCHEDULER_NO_TASK; |
121 | } | 122 | } |
122 | GNUNET_TRANSPORT_get_hello_cancel (p1.th, &process_hello, &p1); | 123 | GNUNET_TRANSPORT_get_hello_cancel (p1.ghh); |
123 | GNUNET_TRANSPORT_get_hello_cancel (p2.th, &process_hello, &p2); | 124 | GNUNET_TRANSPORT_get_hello_cancel (p2.ghh); |
124 | GNUNET_CORE_disconnect (p1.ch); | 125 | GNUNET_CORE_disconnect (p1.ch); |
125 | GNUNET_CORE_disconnect (p2.ch); | 126 | GNUNET_CORE_disconnect (p2.ch); |
126 | GNUNET_TRANSPORT_disconnect (p1.th); | 127 | GNUNET_TRANSPORT_disconnect (p1.th); |
@@ -425,7 +426,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
425 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 426 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
426 | p->th = GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, NULL, NULL); | 427 | p->th = GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, NULL, NULL); |
427 | GNUNET_assert (p->th != NULL); | 428 | GNUNET_assert (p->th != NULL); |
428 | GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); | 429 | p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); |
429 | } | 430 | } |
430 | 431 | ||
431 | 432 | ||