diff options
| author | Rob Landley <rob@landley.net> | 2006-05-08 19:03:07 +0000 |
|---|---|---|
| committer | Rob Landley <rob@landley.net> | 2006-05-08 19:03:07 +0000 |
| commit | a6b5b60942b4e28965f10cb107d4f94aaf756bc1 (patch) | |
| tree | e97daaa61ca25179f9cfd9251446d00521bb5ddb /include | |
| parent | 712ba85b30426bc8fa093c21ae9a5d0018450cc7 (diff) | |
| download | busybox-w32-a6b5b60942b4e28965f10cb107d4f94aaf756bc1.tar.gz busybox-w32-a6b5b60942b4e28965f10cb107d4f94aaf756bc1.tar.bz2 busybox-w32-a6b5b60942b4e28965f10cb107d4f94aaf756bc1.zip | |
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 48239798b..39361a232 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -477,8 +477,8 @@ typedef struct llist_s { | |||
| 477 | } llist_t; | 477 | } llist_t; |
| 478 | extern llist_t *llist_add_to(llist_t *old_head, char *new_item); | 478 | extern llist_t *llist_add_to(llist_t *old_head, char *new_item); |
| 479 | extern llist_t *llist_add_to_end(llist_t *list_head, char *data); | 479 | extern llist_t *llist_add_to_end(llist_t *list_head, char *data); |
| 480 | extern llist_t *llist_free_one(llist_t *elm); | 480 | extern void *llist_pop(llist_t **elm); |
| 481 | extern void llist_free(llist_t *elm); | 481 | extern void llist_free(llist_t *elm, void (*freeit)(void *data)); |
| 482 | 482 | ||
| 483 | extern void print_login_issue(const char *issue_file, const char *tty); | 483 | extern void print_login_issue(const char *issue_file, const char *tty); |
| 484 | extern void print_login_prompt(void); | 484 | extern void print_login_prompt(void); |
