From 0ed98934cdaf37632ca0e40a01aaaa6f193c9b98 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 16 Mar 2015 16:36:11 +0000 Subject: [PATCH] - list.c: removed pointless 0 assignments in node_create() and list_create() git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5703 82007160-df01-0410-b94d-b575c5fd34c7 --- src/list.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/list.c b/src/list.c index 3573758..61f69aa 100644 --- a/src/list.c +++ b/src/list.c @@ -27,9 +27,8 @@ node_t *node_create(void *data) { node_t *node = xcalloc(sizeof *node); - node->next = NULL; - node->prev = NULL; - node->data = (void *) data; + + node->data = data; return node; } @@ -37,12 +36,6 @@ node_t *node_create(void *data) list_t *list_create() { list_t *list = xcalloc(sizeof *list); - - list->head = NULL; - list->tail = NULL; - - list->elements = 0; - return list; } -- 2.30.2