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/set_status_message_test.c | |
parent | 3036cc1f23cef20885db3652972c102e7405d178 (diff) |
Prune long long warnings.
Diffstat (limited to 'auto_tests/set_status_message_test.c')
-rw-r--r-- | auto_tests/set_status_message_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/set_status_message_test.c b/auto_tests/set_status_message_test.c index 3ffdd3c4..b6f01c09 100644 --- a/auto_tests/set_status_message_test.c +++ b/auto_tests/set_status_message_test.c | |||
@@ -59,7 +59,7 @@ static void test_set_status_message(void) | |||
59 | c_sleep(ITERATION_INTERVAL); | 59 | c_sleep(ITERATION_INTERVAL); |
60 | } | 60 | } |
61 | 61 | ||
62 | printf("toxes are online, took %ld seconds\n", time(nullptr) - cur_time); | 62 | printf("toxes are online, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time)); |
63 | const time_t con_time = time(nullptr); | 63 | const time_t con_time = time(nullptr); |
64 | 64 | ||
65 | while (tox_friend_get_connection_status(tox1, 0, nullptr) != TOX_CONNECTION_UDP || | 65 | while (tox_friend_get_connection_status(tox1, 0, nullptr) != TOX_CONNECTION_UDP || |
@@ -70,7 +70,7 @@ static void test_set_status_message(void) | |||
70 | c_sleep(ITERATION_INTERVAL); | 70 | c_sleep(ITERATION_INTERVAL); |
71 | } | 71 | } |
72 | 72 | ||
73 | printf("tox clients connected took %ld seconds\n", time(nullptr) - con_time); | 73 | printf("tox clients connected took %lu seconds\n", (unsigned long)(time(nullptr) - con_time)); |
74 | 74 | ||
75 | TOX_ERR_SET_INFO err_n; | 75 | TOX_ERR_SET_INFO err_n; |
76 | tox_callback_friend_status_message(tox2, status_callback); | 76 | tox_callback_friend_status_message(tox2, status_callback); |
@@ -93,7 +93,7 @@ static void test_set_status_message(void) | |||
93 | ck_assert_msg(memcmp(cmp_status, STATUS_MESSAGE, sizeof(STATUS_MESSAGE)) == 0, | 93 | ck_assert_msg(memcmp(cmp_status, STATUS_MESSAGE, sizeof(STATUS_MESSAGE)) == 0, |
94 | "status message not correct"); | 94 | "status message not correct"); |
95 | 95 | ||
96 | printf("test_set_status_message succeeded, took %ld seconds\n", time(nullptr) - cur_time); | 96 | printf("test_set_status_message succeeded, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time)); |
97 | 97 | ||
98 | tox_kill(tox1); | 98 | tox_kill(tox1); |
99 | tox_kill(tox2); | 99 | tox_kill(tox2); |