diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-24 11:54:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-24 11:54:36 +0000 |
commit | eafc8188ef6584f77dc4dbc6827210f384986e1a (patch) | |
tree | 501f87ddd224b0cbd5aaf9008b57005b129cac24 /src/peerinfo/test_peerinfo_api_notify_friend_only.c | |
parent | 2e95a6961bf57170b215ab28e50dbf2376d46747 (diff) | |
download | gnunet-eafc8188ef6584f77dc4dbc6827210f384986e1a.tar.gz gnunet-eafc8188ef6584f77dc4dbc6827210f384986e1a.zip |
update peerinfo API to use MQ
Diffstat (limited to 'src/peerinfo/test_peerinfo_api_notify_friend_only.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api_notify_friend_only.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/peerinfo/test_peerinfo_api_notify_friend_only.c b/src/peerinfo/test_peerinfo_api_notify_friend_only.c index 403ed4b71..e91610c25 100644 --- a/src/peerinfo/test_peerinfo_api_notify_friend_only.c +++ b/src/peerinfo/test_peerinfo_api_notify_friend_only.c | |||
@@ -209,22 +209,6 @@ process_wo_fo (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
209 | 209 | ||
210 | 210 | ||
211 | static void | 211 | static void |
212 | add_peer_done (void *cls, const char *emsg) | ||
213 | { | ||
214 | if (NULL == emsg) | ||
215 | { | ||
216 | return; | ||
217 | } | ||
218 | else | ||
219 | { | ||
220 | GNUNET_break(0); | ||
221 | GNUNET_SCHEDULER_cancel (timeout_task); | ||
222 | timeout_task = GNUNET_SCHEDULER_add_now (&end_badly, NULL); | ||
223 | } | ||
224 | } | ||
225 | |||
226 | |||
227 | static void | ||
228 | add_peer () | 212 | add_peer () |
229 | { | 213 | { |
230 | struct GNUNET_HELLO_Message *h2; | 214 | struct GNUNET_HELLO_Message *h2; |
@@ -233,10 +217,9 @@ add_peer () | |||
233 | agc = 2; | 217 | agc = 2; |
234 | memset (&pid, 32, sizeof(pid)); | 218 | memset (&pid, 32, sizeof(pid)); |
235 | h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &agc, | 219 | h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &agc, |
236 | GNUNET_YES); | 220 | GNUNET_YES); |
237 | GNUNET_PEERINFO_add_peer (h, h2, &add_peer_done, NULL); | 221 | GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL); |
238 | GNUNET_free(h2); | 222 | GNUNET_free(h2); |
239 | |||
240 | } | 223 | } |
241 | 224 | ||
242 | 225 | ||