summaryrefslogtreecommitdiff
path: root/auto_tests/tox_many_tcp_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/tox_many_tcp_test.c')
-rw-r--r--auto_tests/tox_many_tcp_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/tox_many_tcp_test.c b/auto_tests/tox_many_tcp_test.c
index e09ed8fb..77eef929 100644
--- a/auto_tests/tox_many_tcp_test.c
+++ b/auto_tests/tox_many_tcp_test.c
@@ -62,7 +62,7 @@ START_TEST(test_many_clients_tcp)
62 tox_callback_friend_request(toxes[i], accept_friend_request); 62 tox_callback_friend_request(toxes[i], accept_friend_request);
63 uint8_t dpk[TOX_PUBLIC_KEY_SIZE]; 63 uint8_t dpk[TOX_PUBLIC_KEY_SIZE];
64 tox_self_get_dht_id(toxes[0], dpk); 64 tox_self_get_dht_id(toxes[0], dpk);
65 TOX_ERR_BOOTSTRAP error = TOX_ERR_BOOTSTRAP_OK; 65 Tox_Err_Bootstrap error = TOX_ERR_BOOTSTRAP_OK;
66 ck_assert_msg(tox_add_tcp_relay(toxes[i], TOX_LOCALHOST, TCP_RELAY_PORT, dpk, &error), "add relay error, %u, %d", i, 66 ck_assert_msg(tox_add_tcp_relay(toxes[i], TOX_LOCALHOST, TCP_RELAY_PORT, dpk, &error), "add relay error, %u, %d", i,
67 error); 67 error);
68 uint16_t first_port = tox_self_get_udp_port(toxes[0], nullptr); 68 uint16_t first_port = tox_self_get_udp_port(toxes[0], nullptr);
@@ -91,7 +91,7 @@ loop_top:
91 91
92 tox_self_get_address(toxes[pairs[i].tox1], address); 92 tox_self_get_address(toxes[pairs[i].tox1], address);
93 93
94 TOX_ERR_FRIEND_ADD test; 94 Tox_Err_Friend_Add test;
95 uint32_t num = tox_friend_add(toxes[pairs[i].tox2], address, (const uint8_t *)"Gentoo", 7, &test); 95 uint32_t num = tox_friend_add(toxes[pairs[i].tox2], address, (const uint8_t *)"Gentoo", 7, &test);
96 96
97 if (test == TOX_ERR_FRIEND_ADD_ALREADY_SENT) { 97 if (test == TOX_ERR_FRIEND_ADD_ALREADY_SENT) {
@@ -185,7 +185,7 @@ loop_top:
185 185
186 tox_self_get_address(toxes[pairs[i].tox1], address); 186 tox_self_get_address(toxes[pairs[i].tox1], address);
187 187
188 TOX_ERR_FRIEND_ADD test; 188 Tox_Err_Friend_Add test;
189 uint32_t num = tox_friend_add(toxes[pairs[i].tox2], address, (const uint8_t *)"Gentoo", 7, &test); 189 uint32_t num = tox_friend_add(toxes[pairs[i].tox2], address, (const uint8_t *)"Gentoo", 7, &test);
190 190
191 if (test == TOX_ERR_FRIEND_ADD_ALREADY_SENT) { 191 if (test == TOX_ERR_FRIEND_ADD_ALREADY_SENT) {