diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-23 02:22:38 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-24 22:20:22 +0000 |
commit | d3b286cb434ed228e7b62cc70cb293e7a5554bfa (patch) | |
tree | 9ab3dd66f9dba2ca861ba8c6e098fb96754aa80b /toxcore/onion_client.c | |
parent | afc80922e720f5d2a93bdfb3745da058e5ddf81b (diff) |
Fix a bunch of compiler warnings and remove suppressions.
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index e6743559..c4eb3fc1 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -1351,14 +1351,14 @@ int onion_delfriend(Onion_Client *onion_c, int friend_num) | |||
1351 | * return -1 on failure. | 1351 | * return -1 on failure. |
1352 | * return 0 on success. | 1352 | * return 0 on success. |
1353 | */ | 1353 | */ |
1354 | int recv_tcp_relay_handler(Onion_Client *onion_c, int friend_num, int (*tcp_relay_node_callback)(void *object, | 1354 | int recv_tcp_relay_handler(Onion_Client *onion_c, int friend_num, int (*callback)(void *object, |
1355 | uint32_t number, IP_Port ip_port, const uint8_t *public_key), void *object, uint32_t number) | 1355 | uint32_t number, IP_Port ip_port, const uint8_t *public_key), void *object, uint32_t number) |
1356 | { | 1356 | { |
1357 | if ((uint32_t)friend_num >= onion_c->num_friends) { | 1357 | if ((uint32_t)friend_num >= onion_c->num_friends) { |
1358 | return -1; | 1358 | return -1; |
1359 | } | 1359 | } |
1360 | 1360 | ||
1361 | onion_c->friends_list[friend_num].tcp_relay_node_callback = tcp_relay_node_callback; | 1361 | onion_c->friends_list[friend_num].tcp_relay_node_callback = callback; |
1362 | onion_c->friends_list[friend_num].tcp_relay_node_callback_object = object; | 1362 | onion_c->friends_list[friend_num].tcp_relay_node_callback_object = object; |
1363 | onion_c->friends_list[friend_num].tcp_relay_node_callback_number = number; | 1363 | onion_c->friends_list[friend_num].tcp_relay_node_callback_number = number; |
1364 | return 0; | 1364 | return 0; |