summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r--toxcore/onion_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c
index 1fe54d85..630882cc 100644
--- a/toxcore/onion_client.c
+++ b/toxcore/onion_client.c
@@ -530,7 +530,7 @@ static int handle_fakeid_announce(void *object, const uint8_t *source_pubkey, co
530 * return the number of packets sent on success 530 * return the number of packets sent on success
531 * return -1 on failure. 531 * return -1 on failure.
532 */ 532 */
533int send_onion_data(Onion_Client *onion_c, int friend_num, uint8_t *data, uint32_t length) 533int send_onion_data(const Onion_Client *onion_c, int friend_num, const uint8_t *data, uint32_t length)
534{ 534{
535 if ((uint32_t)friend_num >= onion_c->num_friends) 535 if ((uint32_t)friend_num >= onion_c->num_friends)
536 return -1; 536 return -1;