diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-21 16:03:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-21 16:03:30 +0000 |
commit | a89c7a30d499bac96890929d745fad063eb707b2 (patch) | |
tree | cb001facf8da3cfc9e9bfaa854fb99b9b51ec636 /src/testbed/gnunet-service-testbed_cache.c | |
parent | d70d18816c37c30e02977a2cc2bdb2368e95a4de (diff) | |
download | gnunet-a89c7a30d499bac96890929d745fad063eb707b2.tar.gz gnunet-a89c7a30d499bac96890929d745fad063eb707b2.zip |
removing deprecated argument in 'init' callback of GNUNET_CORE_connect
Diffstat (limited to 'src/testbed/gnunet-service-testbed_cache.c')
-rw-r--r-- | src/testbed/gnunet-service-testbed_cache.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/testbed/gnunet-service-testbed_cache.c b/src/testbed/gnunet-service-testbed_cache.c index c50288f2d..8cae56076 100644 --- a/src/testbed/gnunet-service-testbed_cache.c +++ b/src/testbed/gnunet-service-testbed_cache.c | |||
@@ -607,11 +607,10 @@ oprelease_get_handle_transport (void *cls) | |||
607 | * do this later). | 607 | * do this later). |
608 | * | 608 | * |
609 | * @param cls closure | 609 | * @param cls closure |
610 | * @param server handle to the server, NULL if we failed | ||
611 | * @param my_identity ID of this peer, NULL if we failed | 610 | * @param my_identity ID of this peer, NULL if we failed |
612 | */ | 611 | */ |
613 | static void | 612 | static void |
614 | core_startup_cb (void *cls, struct GNUNET_CORE_Handle *server, | 613 | core_startup_cb (void *cls, |
615 | const struct GNUNET_PeerIdentity *my_identity) | 614 | const struct GNUNET_PeerIdentity *my_identity) |
616 | { | 615 | { |
617 | struct CacheEntry *entry = cls; | 616 | struct CacheEntry *entry = cls; |
@@ -622,9 +621,8 @@ core_startup_cb (void *cls, struct GNUNET_CORE_Handle *server, | |||
622 | return; | 621 | return; |
623 | } | 622 | } |
624 | GNUNET_assert (NULL == entry->peer_identity); | 623 | GNUNET_assert (NULL == entry->peer_identity); |
625 | GNUNET_break (NULL != server); | 624 | // FIXME: why is this dynamically allocated? |
626 | entry->core_handle = server; | 625 | entry->peer_identity = GNUNET_new (struct GNUNET_PeerIdentity); |
627 | entry->peer_identity = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); | ||
628 | memcpy (entry->peer_identity, my_identity, | 626 | memcpy (entry->peer_identity, my_identity, |
629 | sizeof (struct GNUNET_PeerIdentity)); | 627 | sizeof (struct GNUNET_PeerIdentity)); |
630 | if (0 == entry->demand) | 628 | if (0 == entry->demand) |