summaryrefslogtreecommitdiff
path: root/toxcore/onion_announce.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-17 10:52:04 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-18 00:01:53 +0100
commita5e35180c7b42d30c82825cd67c8118ce048f65a (patch)
treeb74e8ece4f78a988ab0a1300cc08bd35fcd63662 /toxcore/onion_announce.c
parentdb22522741cccdeba657776844538c71cf8e8e7a (diff)
Make tox_callback_friend_name stateless.
See #27 and #40 for details.
Diffstat (limited to 'toxcore/onion_announce.c')
-rw-r--r--toxcore/onion_announce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_announce.c b/toxcore/onion_announce.c
index 676b38da..f6a00f67 100644
--- a/toxcore/onion_announce.c
+++ b/toxcore/onion_announce.c
@@ -286,7 +286,7 @@ static int add_to_entries(Onion_Announce *onion_a, IP_Port ret_ip_port, const ui
286 return in_entries(onion_a, public_key); 286 return in_entries(onion_a, public_key);
287} 287}
288 288
289static int handle_announce_request(void *object, IP_Port source, const uint8_t *packet, uint16_t length) 289static int handle_announce_request(void *object, IP_Port source, const uint8_t *packet, uint16_t length, void *userdata)
290{ 290{
291 Onion_Announce *onion_a = object; 291 Onion_Announce *onion_a = object;
292 292
@@ -380,7 +380,7 @@ static int handle_announce_request(void *object, IP_Port source, const uint8_t *
380 return 0; 380 return 0;
381} 381}
382 382
383static int handle_data_request(void *object, IP_Port source, const uint8_t *packet, uint16_t length) 383static int handle_data_request(void *object, IP_Port source, const uint8_t *packet, uint16_t length, void *userdata)
384{ 384{
385 Onion_Announce *onion_a = object; 385 Onion_Announce *onion_a = object;
386 386