summaryrefslogtreecommitdiff
path: root/auto_tests/run_auto_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/run_auto_test.h')
-rw-r--r--auto_tests/run_auto_test.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/auto_tests/run_auto_test.h b/auto_tests/run_auto_test.h
index 602ad524..bcbfed55 100644
--- a/auto_tests/run_auto_test.h
+++ b/auto_tests/run_auto_test.h
@@ -42,9 +42,10 @@ static void iterate_all_wait(uint32_t tox_count, Tox **toxes, State *state, uint
42 c_sleep(20); 42 c_sleep(20);
43} 43}
44 44
45static uint64_t get_state_clock_callback(void *user_data) 45static uint64_t get_state_clock_callback(Mono_Time *mono_time, void *user_data)
46{ 46{
47 return ((State *)user_data)->clock; 47 const State *state = (const State *)user_data;
48 return state->clock;
48} 49}
49 50
50static void run_auto_test(uint32_t tox_count, void test(Tox **toxes, State *state)) 51static void run_auto_test(uint32_t tox_count, void test(Tox **toxes, State *state))