summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-05 15:03:21 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-05 15:03:21 +0000
commit5d8749b903e4c0d038b71adf3804a6c3acaac54f (patch)
tree4ec62d0001747109b76a584a45ec7dbea7ea10d4 /src
parentdaaddaf0ccad48256ee4e9f4ded6b01b40bc84aa (diff)
perf test
Diffstat (limited to 'src')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c1
-rwxr-xr-xsrc/peerinfo/perf_peerinfo_api.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 8b113f9ce..7a2a02c2a 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -510,7 +510,6 @@ bind_address (const struct GNUNET_PeerIdentity *peer,
GNUNET_assert (NULL != host);
if (NULL == host->hello)
{
- GNUNET_break (0);
host->hello = GNUNET_malloc (GNUNET_HELLO_size (hello));
memcpy (host->hello, hello, GNUNET_HELLO_size (hello));
}
diff --git a/src/peerinfo/perf_peerinfo_api.c b/src/peerinfo/perf_peerinfo_api.c
index 41533bd3f..d55ccce2b 100755
--- a/src/peerinfo/perf_peerinfo_api.c
+++ b/src/peerinfo/perf_peerinfo_api.c
@@ -82,7 +82,7 @@ address_generator (void *cls, size_t max, void *buf)
static void
add_peer (size_t i)
{
- struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey;
+ struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey;
struct GNUNET_HELLO_Message *h2;
memset (&pkey, i, sizeof (pkey));
@@ -120,7 +120,7 @@ run (void *cls,
{
add_peer (i);
ic[i] =
- GNUNET_PEERINFO_iterate (h, NULL,
+ GNUNET_PEERINFO_iterate (h, GNUNET_YES, NULL,
GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_SECONDS, 30), &process, cls);
}