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/test_peerinfo_api_notify_friend_only.c | |
parent | db0ea05dd78b11caf79067746252161905630e2c (diff) | |
download | gnunet-73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8.tar.gz gnunet-73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8.zip |
-fix test FTBFS
Diffstat (limited to 'src/peerinfo/test_peerinfo_api_notify_friend_only.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api_notify_friend_only.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/peerinfo/test_peerinfo_api_notify_friend_only.c b/src/peerinfo/test_peerinfo_api_notify_friend_only.c index a2774b8dd..fed8072b7 100644 --- a/src/peerinfo/test_peerinfo_api_notify_friend_only.c +++ b/src/peerinfo/test_peerinfo_api_notify_friend_only.c | |||
@@ -227,14 +227,12 @@ add_peer_done (void *cls, const char *emsg) | |||
227 | static void | 227 | static void |
228 | add_peer () | 228 | add_peer () |
229 | { | 229 | { |
230 | struct GNUNET_CRYPTO_EccPublicSignKey pkey; | ||
231 | struct GNUNET_HELLO_Message *h2; | 230 | struct GNUNET_HELLO_Message *h2; |
232 | size_t agc; | 231 | size_t agc; |
233 | 232 | ||
234 | agc = 2; | 233 | agc = 2; |
235 | memset (&pkey, 32, sizeof (pkey)); | 234 | memset (&pid, 32, sizeof (pid)); |
236 | GNUNET_CRYPTO_hash (&pkey, sizeof (pkey), &pid.hashPubKey); | 235 | h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &agc, GNUNET_YES); |
237 | h2 = GNUNET_HELLO_create (&pkey, &address_generator, &agc, GNUNET_YES); | ||
238 | GNUNET_PEERINFO_add_peer (h, h2, &add_peer_done, NULL); | 236 | GNUNET_PEERINFO_add_peer (h, h2, &add_peer_done, NULL); |
239 | GNUNET_free (h2); | 237 | GNUNET_free (h2); |
240 | 238 | ||