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.c | |
parent | db0ea05dd78b11caf79067746252161905630e2c (diff) | |
download | gnunet-73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8.tar.gz gnunet-73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8.zip |
-fix test FTBFS
Diffstat (limited to 'src/peerinfo/test_peerinfo_api.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c index 51c4ec13a..07f9fe16d 100644 --- a/src/peerinfo/test_peerinfo_api.c +++ b/src/peerinfo/test_peerinfo_api.c | |||
@@ -86,14 +86,12 @@ struct GNUNET_PeerIdentity pid; | |||
86 | static void | 86 | static void |
87 | add_peer () | 87 | add_peer () |
88 | { | 88 | { |
89 | struct GNUNET_CRYPTO_EccPublicSignKey pkey; | ||
90 | struct GNUNET_HELLO_Message *h2; | 89 | struct GNUNET_HELLO_Message *h2; |
91 | size_t agc; | 90 | size_t agc; |
92 | 91 | ||
93 | agc = 2; | 92 | agc = 2; |
94 | memset (&pkey, 32, sizeof (pkey)); | 93 | memset (&pid, 32, sizeof (pid)); |
95 | GNUNET_CRYPTO_hash (&pkey, sizeof (pkey), &pid.hashPubKey); | 94 | h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &agc, GNUNET_NO); |
96 | h2 = GNUNET_HELLO_create (&pkey, &address_generator, &agc, GNUNET_NO); | ||
97 | GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL); | 95 | GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL); |
98 | GNUNET_free (h2); | 96 | GNUNET_free (h2); |
99 | 97 | ||