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 | |
parent | db0ea05dd78b11caf79067746252161905630e2c (diff) | |
download | gnunet-73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8.tar.gz gnunet-73b0aa3d9b66f2a9f08f9a75b36a4d993ca8a2c8.zip |
-fix test FTBFS
Diffstat (limited to 'src/peerinfo')
-rwxr-xr-x | src/peerinfo/perf_peerinfo_api.c | 6 | ||||
-rw-r--r-- | src/peerinfo/test_peerinfo_api.c | 6 | ||||
-rw-r--r-- | src/peerinfo/test_peerinfo_api_friend_only.c | 6 | ||||
-rw-r--r-- | src/peerinfo/test_peerinfo_api_notify_friend_only.c | 6 |
4 files changed, 8 insertions, 16 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 | } |
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 | ||
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 | ||
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 | ||