diff options
author | Rob Landley | 2006-05-08 19:03:07 +0000 |
---|---|---|
committer | Rob Landley | 2006-05-08 19:03:07 +0000 |
commit | a6b5b60942b4e28965f10cb107d4f94aaf756bc1 (patch) | |
tree | e97daaa61ca25179f9cfd9251446d00521bb5ddb /include | |
parent | 712ba85b30426bc8fa093c21ae9a5d0018450cc7 (diff) | |
download | busybox-a6b5b60942b4e28965f10cb107d4f94aaf756bc1.zip busybox-a6b5b60942b4e28965f10cb107d4f94aaf756bc1.tar.gz |
Fiddling with llist to make memory management easier. Specifically, the
option to delete the contents of the list when we delete the list is a
good thing.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 4823979..39361a2 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -477,8 +477,8 @@ typedef struct llist_s { } llist_t; extern llist_t *llist_add_to(llist_t *old_head, char *new_item); extern llist_t *llist_add_to_end(llist_t *list_head, char *data); -extern llist_t *llist_free_one(llist_t *elm); -extern void llist_free(llist_t *elm); +extern void *llist_pop(llist_t **elm); +extern void llist_free(llist_t *elm, void (*freeit)(void *data)); extern void print_login_issue(const char *issue_file, const char *tty); extern void print_login_prompt(void); |