aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/test_peerinfo_api_friend_only.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo/test_peerinfo_api_friend_only.c')
-rw-r--r--src/peerinfo/test_peerinfo_api_friend_only.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peerinfo/test_peerinfo_api_friend_only.c b/src/peerinfo/test_peerinfo_api_friend_only.c
index 61abd40c6..4c3d3b3ef 100644
--- a/src/peerinfo/test_peerinfo_api_friend_only.c
+++ b/src/peerinfo/test_peerinfo_api_friend_only.c
@@ -63,12 +63,12 @@ address_generator (void *cls, size_t max, void *buf)
63 return ret; 63 return ret;
64} 64}
65 65
66struct GNUNET_PeerIdentity pid;
66 67
67static void 68static void
68add_peer () 69add_peer ()
69{ 70{
70 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; 71 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey;
71 struct GNUNET_PeerIdentity pid;
72 struct GNUNET_HELLO_Message *h2; 72 struct GNUNET_HELLO_Message *h2;
73 size_t agc; 73 size_t agc;
74 74
@@ -138,7 +138,7 @@ run (void *cls,
138 h = GNUNET_PEERINFO_connect (cfg); 138 h = GNUNET_PEERINFO_connect (cfg);
139 GNUNET_assert (NULL != h); 139 GNUNET_assert (NULL != h);
140 add_peer (); 140 add_peer ();
141 ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, NULL, 141 ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, &pid,
142 GNUNET_TIME_relative_multiply 142 GNUNET_TIME_relative_multiply
143 (GNUNET_TIME_UNIT_SECONDS, 15), &process, cls); 143 (GNUNET_TIME_UNIT_SECONDS, 15), &process, cls);
144} 144}