diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-01 06:52:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-01 06:52:03 +0000 |
commit | 73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8 (patch) | |
tree | fa6ea61eab4a71cba1c0a21eb093a7593bcca87b /src/peerinfo/perf_peerinfo_api.c | |
parent | db0ea05dd78b11caf79067746252161905630e2c (diff) | |
download | gnunet-73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8.tar.gz gnunet-73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8.zip |
-fix test FTBFS
Diffstat (limited to 'src/peerinfo/perf_peerinfo_api.c')
-rwxr-xr-x | src/peerinfo/perf_peerinfo_api.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/peerinfo/perf_peerinfo_api.c b/src/peerinfo/perf_peerinfo_api.c index 01d87b48b..9ef84f463 100755 --- a/src/peerinfo/perf_peerinfo_api.c +++ b/src/peerinfo/perf_peerinfo_api.c | |||
@@ -82,12 +82,10 @@ address_generator (void *cls, size_t max, void *buf) | |||
82 | static void | 82 | static void |
83 | add_peer (size_t i) | 83 | add_peer (size_t i) |
84 | { | 84 | { |
85 | struct GNUNET_CRYPTO_EccPublicSignKey pkey; | ||
86 | struct GNUNET_HELLO_Message *h2; | 85 | struct GNUNET_HELLO_Message *h2; |
87 | 86 | ||
88 | memset (&pkey, i, sizeof (pkey)); | 87 | memset (&pid, i, sizeof (pid)); |
89 | GNUNET_CRYPTO_hash (&pkey, sizeof (pkey), &pid.hashPubKey); | 88 | h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &i, GNUNET_NO); |
90 | h2 = GNUNET_HELLO_create (&pkey, &address_generator, &i, GNUNET_NO); | ||
91 | GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL); | 89 | GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL); |
92 | GNUNET_free (h2); | 90 | GNUNET_free (h2); |
93 | } | 91 | } |