aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/test_peerinfo_api_friend_only.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-10 09:02:17 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-10 09:02:17 +0000
commit60c01495b1f945b9755d72261f1c6f5ea8ea1fda (patch)
tree52a55b4f47abda37fa5f37f6a057aabdb3720271 /src/peerinfo/test_peerinfo_api_friend_only.c
parent54ed2dc773c3f009f6861af2317f26b031e9d2a3 (diff)
downloadgnunet-60c01495b1f945b9755d72261f1c6f5ea8ea1fda.tar.gz
gnunet-60c01495b1f945b9755d72261f1c6f5ea8ea1fda.zip
multiple major fixes:
- shipped hellos were never parsed - when hello files was parsed from certain file, hello from this was ignored major changes in this commit which can break functionality atm
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}