From 1406766a0c75f6a861afb73f1606036f2da79bd5 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 28 Mar 2017 02:51:25 +0200 Subject: libcnary: Remove unused 'node' parameter from node_list_create() --- libcnary/include/node_list.h | 2 +- libcnary/node.c | 2 +- libcnary/node_list.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libcnary/include/node_list.h b/libcnary/include/node_list.h index 7b9e311..380916e 100644 --- a/libcnary/include/node_list.h +++ b/libcnary/include/node_list.h @@ -38,7 +38,7 @@ typedef struct node_list_t { } node_list_t; 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_insert(node_list_t* list, unsigned int index, node_t* node); diff --git a/libcnary/node.c b/libcnary/node.c index fadc9de..6026925 100644 --- a/libcnary/node.c +++ b/libcnary/node.c @@ -61,7 +61,7 @@ node_t* node_create(node_t* parent, void* data) { node->isLeaf = TRUE; node->isRoot = TRUE; node->parent = NULL; - node->children = node_list_create(node); + node->children = node_list_create(); // Pass NULL to create a root node if(parent != NULL) { diff --git a/libcnary/node_list.c b/libcnary/node_list.c index 4b268e0..dd143bb 100644 --- a/libcnary/node_list.c +++ b/libcnary/node_list.c @@ -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)); if(list == NULL) { return NULL; -- cgit v1.1-32-gdbae