From a5e35180c7b42d30c82825cd67c8118ce048f65a Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 17 Aug 2016 10:52:04 +0100 Subject: Make tox_callback_friend_name stateless. See #27 and #40 for details. --- toxcore/ping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/ping.c') diff --git a/toxcore/ping.c b/toxcore/ping.c index f81766cb..dc0a01f3 100644 --- a/toxcore/ping.c +++ b/toxcore/ping.c @@ -129,7 +129,7 @@ static int send_ping_response(PING *ping, IP_Port ipp, const uint8_t *public_key return sendpacket(ping->dht->net, ipp, pk, sizeof(pk)); } -static int handle_ping_request(void *_dht, IP_Port source, const uint8_t *packet, uint16_t length) +static int handle_ping_request(void *_dht, IP_Port source, const uint8_t *packet, uint16_t length, void *userdata) { DHT *dht = _dht; int rc; @@ -168,7 +168,7 @@ static int handle_ping_request(void *_dht, IP_Port source, const uint8_t *packet return 0; } -static int handle_ping_response(void *_dht, IP_Port source, const uint8_t *packet, uint16_t length) +static int handle_ping_response(void *_dht, IP_Port source, const uint8_t *packet, uint16_t length, void *userdata) { DHT *dht = _dht; int rc; -- cgit v1.2.3