try to not use casting so it will be like this :
Code:
list_t **list_array = malloc(sizeof(list_t*) * max_size);