aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/test_peerinfo_api.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.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.c')
-rw-r--r--src/peerinfo/test_peerinfo_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c
index d3dcc2fd0..a68b2bdb7 100644
--- a/src/peerinfo/test_peerinfo_api.c
+++ b/src/peerinfo/test_peerinfo_api.c
@@ -81,12 +81,12 @@ address_generator (void *cls, size_t max, void *buf)
81 return ret; 81 return ret;
82} 82}
83 83
84struct GNUNET_PeerIdentity pid;
84 85
85static void 86static void
86add_peer () 87add_peer ()
87{ 88{
88 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; 89 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey;
89 struct GNUNET_PeerIdentity pid;
90 struct GNUNET_HELLO_Message *h2; 90 struct GNUNET_HELLO_Message *h2;
91 size_t agc; 91 size_t agc;
92 92
@@ -152,7 +152,7 @@ run (void *cls,
152 h = GNUNET_PEERINFO_connect (cfg); 152 h = GNUNET_PEERINFO_connect (cfg);
153 GNUNET_assert (NULL != h); 153 GNUNET_assert (NULL != h);
154 add_peer (); 154 add_peer ();
155 ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, NULL, 155 ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, &pid,
156 GNUNET_TIME_relative_multiply 156 GNUNET_TIME_relative_multiply
157 (GNUNET_TIME_UNIT_SECONDS, 15), &process, cls); 157 (GNUNET_TIME_UNIT_SECONDS, 15), &process, cls);
158} 158}