From: michael Date: Mon, 16 Mar 2015 16:36:11 +0000 (+0000) Subject: - list.c: removed pointless 0 assignments in node_create() and list_create() X-Git-Tag: 1.1.0beta1~123 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=0ed98934cdaf37632ca0e40a01aaaa6f193c9b98;p=hopm.git - 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 --- 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; }