diff options
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist_reconnect.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_reconnect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c b/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c index ff625cf8e..078c2a54e 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c | |||
@@ -47,6 +47,7 @@ struct PeerContext | |||
47 | struct GNUNET_CONFIGURATION_Handle *cfg; | 47 | struct GNUNET_CONFIGURATION_Handle *cfg; |
48 | struct GNUNET_TRANSPORT_Handle *th; | 48 | struct GNUNET_TRANSPORT_Handle *th; |
49 | struct GNUNET_MessageHeader *hello; | 49 | struct GNUNET_MessageHeader *hello; |
50 | struct GNUNET_TRANSPORT_GetHelloHandle *ghh; | ||
50 | #if START_ARM | 51 | #if START_ARM |
51 | struct GNUNET_OS_Process *arm_proc; | 52 | struct GNUNET_OS_Process *arm_proc; |
52 | #endif | 53 | #endif |
@@ -121,7 +122,7 @@ process_hello (void *cls, const struct GNUNET_MessageHeader *message) | |||
121 | { | 122 | { |
122 | struct PeerContext *p = cls; | 123 | struct PeerContext *p = cls; |
123 | 124 | ||
124 | GNUNET_TRANSPORT_get_hello_cancel (p->th, &process_hello, p); | 125 | GNUNET_TRANSPORT_get_hello_cancel (p->ghh); |
125 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 126 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
126 | "Received HELLO, starting hostlist service.\n"); | 127 | "Received HELLO, starting hostlist service.\n"); |
127 | } | 128 | } |
@@ -144,7 +145,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
144 | p->th = | 145 | p->th = |
145 | GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, ¬ify_connect, NULL); | 146 | GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, ¬ify_connect, NULL); |
146 | GNUNET_assert (p->th != NULL); | 147 | GNUNET_assert (p->th != NULL); |
147 | GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); | 148 | p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); |
148 | } | 149 | } |
149 | 150 | ||
150 | 151 | ||