- list.c: removed pointless 0 assignments in node_create() and list_create()
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Mon, 16 Mar 2015 16:36:11 +0000 (16:36 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Mon, 16 Mar 2015 16:36:11 +0000 (16:36 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5703 82007160-df01-0410-b94d-b575c5fd34c7

src/list.c

index 3573758e45a424acaad4902fcd4d946caf00a661..61f69aae7ae48f8e19a016d6d22981ec56dcbfe7 100644 (file)
@@ -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;
 }