aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-01-20 21:06:42 +0000
committerChristian Grothoff <christian@grothoff.org>2010-01-20 21:06:42 +0000
commite6976d9aadb2e6cc4005d33174688c3d86416ed2 (patch)
tree3bcc3067a9b36cef3980fe81361f7aba7bfcc22f /src/core/test_core_api.c
parentbe4b1dd005c4552b84411e2ba2b81972e367c0e4 (diff)
downloadgnunet-e6976d9aadb2e6cc4005d33174688c3d86416ed2.tar.gz
gnunet-e6976d9aadb2e6cc4005d33174688c3d86416ed2.zip
fixing non-transport compilation issues
Diffstat (limited to 'src/core/test_core_api.c')
-rw-r--r--src/core/test_core_api.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c
index acece6545..7cb5e245c 100644
--- a/src/core/test_core_api.c
+++ b/src/core/test_core_api.c
@@ -243,16 +243,14 @@ init_notify (void *cls,
243 243
244static void 244static void
245process_hello (void *cls, 245process_hello (void *cls,
246 struct GNUNET_TIME_Relative latency,
247 const struct GNUNET_PeerIdentity *peer,
248 const struct GNUNET_MessageHeader *message) 246 const struct GNUNET_MessageHeader *message)
249{ 247{
250 struct PeerContext *p = cls; 248 struct PeerContext *p = cls;
251 249
252 GNUNET_assert (peer != NULL); 250 GNUNET_TRANSPORT_get_hello_cancel (p->th, &process_hello, p);
253 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 251 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
254 "Received (my) `%s' from transport service of `%4s'\n", 252 "Received (my) `%s' from transport service\n",
255 "HELLO", GNUNET_i2s (peer)); 253 "HELLO");
256 GNUNET_assert (message != NULL); 254 GNUNET_assert (message != NULL);
257 p->hello = GNUNET_malloc (ntohs (message->size)); 255 p->hello = GNUNET_malloc (ntohs (message->size));
258 memcpy (p->hello, message, ntohs (message->size)); 256 memcpy (p->hello, message, ntohs (message->size));
@@ -285,7 +283,7 @@ setup_peer (struct PeerContext *p, const char *cfgname)
285 GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); 283 GNUNET_ARM_start_services (p->cfg, sched, "core", NULL);
286 p->th = GNUNET_TRANSPORT_connect (sched, p->cfg, p, NULL, NULL, NULL); 284 p->th = GNUNET_TRANSPORT_connect (sched, p->cfg, p, NULL, NULL, NULL);
287 GNUNET_assert (p->th != NULL); 285 GNUNET_assert (p->th != NULL);
288 GNUNET_TRANSPORT_get_hello (p->th, TIMEOUT, &process_hello, p); 286 GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p);
289} 287}
290 288
291 289