diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 23:44:51 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 23:44:51 +0000 |
commit | ab1c37300f2a6a0215c17cd683df316d8a1e8f59 (patch) | |
tree | b717c772c6fef53c34b723341a8c5b12ccb57902 /include | |
parent | c806c321575528e76c4479666d398a0534cb81d8 (diff) | |
download | busybox-w32-ab1c37300f2a6a0215c17cd683df316d8a1e8f59.tar.gz busybox-w32-ab1c37300f2a6a0215c17cd683df316d8a1e8f59.tar.bz2 busybox-w32-ab1c37300f2a6a0215c17cd683df316d8a1e8f59.zip |
Change llist_add_* to take the address of the list rather than returning the new
head, and change all the callers.
git-svn-id: svn://busybox.net/trunk/busybox@15199 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 { | |||
84 | char *data; | 84 | char *data; |
85 | struct llist_s *link; | 85 | struct llist_s *link; |
86 | } llist_t; | 86 | } llist_t; |
87 | extern llist_t *llist_add_to(llist_t *old_head, void *data); | 87 | extern void llist_add_to(llist_t **old_head, void *data); |
88 | extern llist_t *llist_add_to_end(llist_t *list_head, void *data); | 88 | extern void llist_add_to_end(llist_t **list_head, void *data); |
89 | extern void *llist_pop(llist_t **elm); | 89 | extern void *llist_pop(llist_t **elm); |
90 | extern void llist_free(llist_t *elm, void (*freeit)(void *data)); | 90 | extern void llist_free(llist_t *elm, void (*freeit)(void *data)); |
91 | 91 | ||