summaryrefslogtreecommitdiff
path: root/auto_tests/set_name_test.c
diff options
context:
space:
mode:
authorLeonid Bobrov <mazocomp@disroot.org>2018-08-16 10:09:12 +0300
committeriphydf <iphydf@users.noreply.github.com>2018-08-16 09:57:37 +0000
commit006b4f4e5c3579428ff02ab954bf78a913df9e5a (patch)
treec68c3aec191b115fe73c8df7399468ae0edec222 /auto_tests/set_name_test.c
parent3036cc1f23cef20885db3652972c102e7405d178 (diff)
Prune long long warnings.
Diffstat (limited to 'auto_tests/set_name_test.c')
-rw-r--r--auto_tests/set_name_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/set_name_test.c b/auto_tests/set_name_test.c
index 6f467bdb..f8f94047 100644
--- a/auto_tests/set_name_test.c
+++ b/auto_tests/set_name_test.c
@@ -56,7 +56,7 @@ static void test_set_name(void)
56 c_sleep(ITERATION_INTERVAL); 56 c_sleep(ITERATION_INTERVAL);
57 } 57 }
58 58
59 printf("toxes are online, took %ld seconds\n", time(nullptr) - cur_time); 59 printf("toxes are online, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time));
60 const time_t con_time = time(nullptr); 60 const time_t con_time = time(nullptr);
61 61
62 while (tox_friend_get_connection_status(tox1, 0, nullptr) != TOX_CONNECTION_UDP || 62 while (tox_friend_get_connection_status(tox1, 0, nullptr) != TOX_CONNECTION_UDP ||
@@ -66,7 +66,7 @@ static void test_set_name(void)
66 c_sleep(ITERATION_INTERVAL); 66 c_sleep(ITERATION_INTERVAL);
67 } 67 }
68 68
69 printf("tox clients connected took %ld seconds\n", time(nullptr) - con_time); 69 printf("tox clients connected took %lu seconds\n", (unsigned long)(time(nullptr) - con_time));
70 70
71 tox_callback_friend_name(tox2, nickchange_callback); 71 tox_callback_friend_name(tox2, nickchange_callback);
72 TOX_ERR_SET_INFO err_n; 72 TOX_ERR_SET_INFO err_n;
@@ -86,7 +86,7 @@ static void test_set_name(void)
86 tox_friend_get_name(tox2, 0, temp_name, nullptr); 86 tox_friend_get_name(tox2, 0, temp_name, nullptr);
87 ck_assert_msg(memcmp(temp_name, NICKNAME, sizeof(NICKNAME)) == 0, "Name not correct"); 87 ck_assert_msg(memcmp(temp_name, NICKNAME, sizeof(NICKNAME)) == 0, "Name not correct");
88 88
89 printf("test_set_name succeeded, took %ld seconds\n", time(nullptr) - cur_time); 89 printf("test_set_name succeeded, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time));
90 90
91 tox_kill(tox1); 91 tox_kill(tox1);
92 tox_kill(tox2); 92 tox_kill(tox2);