diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-08 00:54:33 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-08 00:54:33 +0000 |
commit | 66125c806518f74a54232206d02e30a39b621232 (patch) | |
tree | f7e34d157460ad689c350071a25d19cdd51e1ebb /archival/libunarchive/add_to_list.c | |
parent | 346cdb1ddea7d825b29e9dcd73d6f7af8db8598f (diff) | |
download | busybox-66125c806518f74a54232206d02e30a39b621232.tar.gz |
Move add_to_list from libunarchive to libbb so it can be of more general use (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free).
Diffstat (limited to 'archival/libunarchive/add_to_list.c')
-rw-r--r-- | archival/libunarchive/add_to_list.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/archival/libunarchive/add_to_list.c b/archival/libunarchive/add_to_list.c deleted file mode 100644 index 052bca351..000000000 --- a/archival/libunarchive/add_to_list.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <stdlib.h> -#include <string.h> -#include "unarchive.h" -#include "libbb.h" - -extern const llist_t *add_to_list(const llist_t *old_head, const char *new_item) -{ - llist_t *new_head; - - new_head = xmalloc(sizeof(llist_t)); - new_head->data = new_item; - new_head->link = old_head; - - return(new_head); -} |