diff options
author | Leonid Bobrov <mazocomp@disroot.org> | 2018-08-16 10:09:12 +0300 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-08-16 09:57:37 +0000 |
commit | 006b4f4e5c3579428ff02ab954bf78a913df9e5a (patch) | |
tree | c68c3aec191b115fe73c8df7399468ae0edec222 /auto_tests/typing_test.c | |
parent | 3036cc1f23cef20885db3652972c102e7405d178 (diff) |
Prune long long warnings.
Diffstat (limited to 'auto_tests/typing_test.c')
-rw-r--r-- | auto_tests/typing_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/typing_test.c b/auto_tests/typing_test.c index 041e0b25..3b41dd40 100644 --- a/auto_tests/typing_test.c +++ b/auto_tests/typing_test.c | |||
@@ -53,7 +53,7 @@ static void test_typing(void) | |||
53 | c_sleep(200); | 53 | c_sleep(200); |
54 | } | 54 | } |
55 | 55 | ||
56 | printf("toxes are online, took %ld seconds\n", time(nullptr) - cur_time); | 56 | printf("toxes are online, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time)); |
57 | const time_t con_time = time(nullptr); | 57 | const time_t con_time = time(nullptr); |
58 | 58 | ||
59 | while (tox_friend_get_connection_status(tox1, 0, nullptr) != TOX_CONNECTION_UDP || | 59 | while (tox_friend_get_connection_status(tox1, 0, nullptr) != TOX_CONNECTION_UDP || |
@@ -64,7 +64,7 @@ static void test_typing(void) | |||
64 | c_sleep(200); | 64 | c_sleep(200); |
65 | } | 65 | } |
66 | 66 | ||
67 | printf("tox clients connected took %ld seconds\n", time(nullptr) - con_time); | 67 | printf("tox clients connected took %lu seconds\n", (unsigned long)(time(nullptr) - con_time)); |
68 | 68 | ||
69 | tox_callback_friend_typing(tox2, &typing_callback); | 69 | tox_callback_friend_typing(tox2, &typing_callback); |
70 | tox_self_set_typing(tox1, 0, true, nullptr); | 70 | tox_self_set_typing(tox1, 0, true, nullptr); |
@@ -90,7 +90,7 @@ static void test_typing(void) | |||
90 | ck_assert_msg(tox_friend_get_typing(tox2, 0, &err_t) == 0, "Typing failure"); | 90 | ck_assert_msg(tox_friend_get_typing(tox2, 0, &err_t) == 0, "Typing failure"); |
91 | ck_assert_msg(err_t == TOX_ERR_FRIEND_QUERY_OK, "Typing failure"); | 91 | ck_assert_msg(err_t == TOX_ERR_FRIEND_QUERY_OK, "Typing failure"); |
92 | 92 | ||
93 | printf("test_typing succeeded, took %ld seconds\n", time(nullptr) - cur_time); | 93 | printf("test_typing succeeded, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time)); |
94 | 94 | ||
95 | tox_kill(tox1); | 95 | tox_kill(tox1); |
96 | tox_kill(tox2); | 96 | tox_kill(tox2); |