This commit is contained in:
Laila van Reenen 2024-04-14 23:30:44 +02:00
parent 9c30ea4ef1
commit 3ed2ab432b
2 changed files with 4 additions and 5 deletions

View File

@ -17,8 +17,7 @@ CMDList_t* CMDList_init()
// does not free up the commands // does not free up the commands
int CMDList_deinit(CMDList_t* list) int CMDList_deinit(CMDList_t* list)
{ {
CMDList_t** list_p; CMDList_t** list_p = (CMDList_t**)list;
*list_p = list;
int i; int i;
for (i = 0; i < 26; i++) for (i = 0; i < 26; i++)

View File

@ -11,7 +11,7 @@ add_library(history History/History.c)
# CLI # CLI
add_library(CLI CLI/CLI.c) add_library(CLI CLI/CLI.c)
target_link_libraries(CLI CMDList FIFOBuffChar) target_link_libraries(CLI CMDList FIFOBuffChar history)
add_library(CLI_History CLI/CLI.c) add_library(CLI_History CLI/CLI.c)
target_link_libraries(CLI_History CMDList FIFOBuffChar history) target_link_libraries(CLI_History CMDList FIFOBuffChar history)