Veranderingen om CCS blij te maken

This commit is contained in:
Dennis Boekholtz
2024-04-13 23:16:24 +02:00
parent 64a72b70ef
commit 2495ac6ee6
3 changed files with 11 additions and 7 deletions

View File

@@ -5,6 +5,7 @@
#include <string.h>
#include <stdio.h>
int i;
// initilises a CMDList_t with all NULL pointers
CMDList_t* CMDList_init()
{
@@ -21,7 +22,7 @@ int CMDList_deinit(CMDList_t *list)
// printf("deinit %p\n", (void*)list);
// printf("deinit e %p\n", list->e);
for (int i = 0; i < 26; i++)
for (i = 0; i < 26; i++)
{
if (*(list_p + i) != NULL)
{
@@ -31,7 +32,7 @@ int CMDList_deinit(CMDList_t *list)
}
//TODO: fix "free(): invalid pointer"
// free(list);
free(list);
return 0;
}