summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
authorGregory Mullen (grayhatter) <greg@grayhatter.com>2016-08-19 11:01:58 -0700
committerGregory Mullen (grayhatter) <greg@grayhatter.com>2016-08-20 11:07:49 -0700
commit1f94c9626682fce15aa41dee62099903ee9bea7f (patch)
tree5671fa1aa441054e4c55ed9bb618f3d07f429bf9 /auto_tests
parentf9c83c1084dc34543a6c5c29e675958bdc1cb915 (diff)
Make the friend message callback stateless
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/tox_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c
index 6bd619c3..22a1354d 100644
--- a/auto_tests/tox_test.c
+++ b/auto_tests/tox_test.c
@@ -477,7 +477,7 @@ START_TEST(test_few_clients)
477 ck_assert_msg(connected_t1, "Tox1 isn't connected. %u", connected_t1); 477 ck_assert_msg(connected_t1, "Tox1 isn't connected. %u", connected_t1);
478 printf("tox clients connected took %llu seconds\n", time(NULL) - con_time); 478 printf("tox clients connected took %llu seconds\n", time(NULL) - con_time);
479 to_compare = 974536; 479 to_compare = 974536;
480 tox_callback_friend_message(tox3, print_message, &to_compare); 480 tox_callback_friend_message(tox3, print_message);
481 uint8_t msgs[TOX_MAX_MESSAGE_LENGTH + 1]; 481 uint8_t msgs[TOX_MAX_MESSAGE_LENGTH + 1];
482 memset(msgs, 'G', sizeof(msgs)); 482 memset(msgs, 'G', sizeof(msgs));
483 TOX_ERR_FRIEND_SEND_MESSAGE errm; 483 TOX_ERR_FRIEND_SEND_MESSAGE errm;