Commit 1406766a authored by Nikias Bassen's avatar Nikias Bassen

libcnary: Remove unused 'node' parameter from node_list_create()

parent dccd9290
...@@ -38,7 +38,7 @@ typedef struct node_list_t { ...@@ -38,7 +38,7 @@ typedef struct node_list_t {
} node_list_t; } node_list_t;
void node_list_destroy(struct node_list_t* list); void node_list_destroy(struct node_list_t* list);
struct node_list_t* node_list_create(struct node_t* node); struct node_list_t* node_list_create();
int node_list_add(node_list_t* list, node_t* node); int node_list_add(node_list_t* list, node_t* node);
int node_list_insert(node_list_t* list, unsigned int index, node_t* node); int node_list_insert(node_list_t* list, unsigned int index, node_t* node);
......
...@@ -61,7 +61,7 @@ node_t* node_create(node_t* parent, void* data) { ...@@ -61,7 +61,7 @@ node_t* node_create(node_t* parent, void* data) {
node->isLeaf = TRUE; node->isLeaf = TRUE;
node->isRoot = TRUE; node->isRoot = TRUE;
node->parent = NULL; node->parent = NULL;
node->children = node_list_create(node); node->children = node_list_create();
// Pass NULL to create a root node // Pass NULL to create a root node
if(parent != NULL) { if(parent != NULL) {
......
...@@ -35,7 +35,7 @@ void node_list_destroy(node_list_t* list) { ...@@ -35,7 +35,7 @@ void node_list_destroy(node_list_t* list) {
} }
} }
node_list_t* node_list_create(node_t* node) { node_list_t* node_list_create() {
node_list_t* list = (node_list_t*) malloc(sizeof(node_list_t)); node_list_t* list = (node_list_t*) malloc(sizeof(node_list_t));
if(list == NULL) { if(list == NULL) {
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment