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_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_friend_only.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api_friend_only.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/peerinfo/test_peerinfo_api_friend_only.c b/src/peerinfo/test_peerinfo_api_friend_only.c index d4480165d..9526830b3 100644 --- a/src/peerinfo/test_peerinfo_api_friend_only.c +++ b/src/peerinfo/test_peerinfo_api_friend_only.c | |||
@@ -68,14 +68,12 @@ struct GNUNET_PeerIdentity pid; | |||
68 | static void | 68 | static void |
69 | add_peer () | 69 | add_peer () |
70 | { | 70 | { |
71 | struct GNUNET_CRYPTO_EccPublicSignKey pkey; | ||
72 | struct GNUNET_HELLO_Message *h2; | 71 | struct GNUNET_HELLO_Message *h2; |
73 | size_t agc; | 72 | size_t agc; |
74 | 73 | ||
75 | agc = 2; | 74 | agc = 2; |
76 | memset (&pkey, 32, sizeof (pkey)); | 75 | memset (&pid, 32, sizeof (pid)); |
77 | GNUNET_CRYPTO_hash (&pkey, sizeof (pkey), &pid.hashPubKey); | 76 | h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &agc, GNUNET_YES); |
78 | h2 = GNUNET_HELLO_create (&pkey, &address_generator, &agc, GNUNET_YES); | ||
79 | GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL); | 77 | GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL); |
80 | GNUNET_free (h2); | 78 | GNUNET_free (h2); |
81 | 79 | ||