aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/test_gnunet_daemon_hostlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist.c')
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist.c b/src/hostlist/test_gnunet_daemon_hostlist.c
index 909b946e7..b6d0a1736 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist.c
@@ -46,6 +46,7 @@ struct PeerContext
46 struct GNUNET_CONFIGURATION_Handle *cfg; 46 struct GNUNET_CONFIGURATION_Handle *cfg;
47 struct GNUNET_TRANSPORT_Handle *th; 47 struct GNUNET_TRANSPORT_Handle *th;
48 struct GNUNET_MessageHeader *hello; 48 struct GNUNET_MessageHeader *hello;
49 struct GNUNET_TRANSPORT_GetHelloHandle *ghh;
49#if START_ARM 50#if START_ARM
50 struct GNUNET_OS_Process *arm_proc; 51 struct GNUNET_OS_Process *arm_proc;
51#endif 52#endif
@@ -117,7 +118,7 @@ process_hello (void *cls, const struct GNUNET_MessageHeader *message)
117{ 118{
118 struct PeerContext *p = cls; 119 struct PeerContext *p = cls;
119 120
120 GNUNET_TRANSPORT_get_hello_cancel (p->th, &process_hello, p); 121 GNUNET_TRANSPORT_get_hello_cancel (p->ghh);
121 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 122 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
122 "Received HELLO, starting hostlist service.\n"); 123 "Received HELLO, starting hostlist service.\n");
123} 124}
@@ -140,7 +141,7 @@ setup_peer (struct PeerContext *p, const char *cfgname)
140 p->th = 141 p->th =
141 GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, &notify_connect, NULL); 142 GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, &notify_connect, NULL);
142 GNUNET_assert (p->th != NULL); 143 GNUNET_assert (p->th != NULL);
143 GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); 144 p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p);
144} 145}
145 146
146 147