From cf98714e8dc888d51945c8e1638b983c678abd44 Mon Sep 17 00:00:00 2001 From: dam Date: Wed, 3 Aug 2022 10:16:21 +0000 Subject: Preparing structures to store tasks and events data. --- task_tracker.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/task_tracker.c b/task_tracker.c index 9bb8f4b..c0f40ab 100644 --- a/task_tracker.c +++ b/task_tracker.c @@ -8,8 +8,6 @@ #include -int selected_task = -1; - struct task_event { char* name; time_t start; @@ -22,6 +20,7 @@ struct task_info { }; +int selected_task = -1; char** tasks_names = NULL; uint32_t tasks_names_size = 0; uint32_t tasks_names_capacity = 0; @@ -109,7 +108,7 @@ void fake_data() // Free tasks names. for (uint32_t idx = tasks_names_size; idx > 0; idx--) { - printf("> %s\n", tasks_names[idx-1]); + printf("> %s\n", tasks_names[idx-1]); // @dam TODO debug free(tasks_names[idx-1]); } free(tasks_names); -- cgit v1.2.3