diff options
author | Rob Landley <rob@landley.net> | 2006-05-26 23:44:51 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-26 23:44:51 +0000 |
commit | 8bb50782a5f0dd955a6fe18d381eb9322d1447e7 (patch) | |
tree | b717c772c6fef53c34b723341a8c5b12ccb57902 /include | |
parent | 5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb (diff) | |
download | busybox-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.tar.gz |
Change llist_add_* to take the address of the list rather than returning the new
head, and change all the callers.
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 93b29c6ae..3bb663bb5 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -84,8 +84,8 @@ typedef struct llist_s { char *data; struct llist_s *link; } llist_t; -extern llist_t *llist_add_to(llist_t *old_head, void *data); -extern llist_t *llist_add_to_end(llist_t *list_head, void *data); +extern void llist_add_to(llist_t **old_head, void *data); +extern void llist_add_to_end(llist_t **list_head, void *data); extern void *llist_pop(llist_t **elm); extern void llist_free(llist_t *elm, void (*freeit)(void *data)); |