Add new alloc
This commit is contained in:
parent
acfd0ea3dc
commit
b06ce004c8
|
@ -27,9 +27,8 @@ void*
|
|||
uirc_list_append(llist_t* anchor, void* content)
|
||||
{
|
||||
assert(content != NULL);
|
||||
llist_t* new = llist_elem_alloc();
|
||||
llist_t* new = llist_elem_alloc(content);
|
||||
if (new == NULL) return NULL;
|
||||
llist_elem_set_cont(new, content);
|
||||
llist_elem_conn(anchor, new);
|
||||
return new;
|
||||
}
|
||||
|
|
Reference in New Issue