diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 23:00:10 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 23:00:10 +0000 |
commit | c806c321575528e76c4479666d398a0534cb81d8 (patch) | |
tree | 0f5d3abe8e3c94c516037f1021cb356866e72f13 /libbb | |
parent | 15f27d0cc5ce78a19aa97125389b98a746ecde88 (diff) | |
download | busybox-w32-c806c321575528e76c4479666d398a0534cb81d8.tar.gz busybox-w32-c806c321575528e76c4479666d398a0534cb81d8.tar.bz2 busybox-w32-c806c321575528e76c4479666d398a0534cb81d8.zip |
Slight sanity fix: data is void *, not char *. And it's called data
almost everywhere, so be consistent.
git-svn-id: svn://busybox.net/trunk/busybox@15198 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/llist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/llist.c b/libbb/llist.c index 842e8f7bb..dd80436c6 100644 --- a/libbb/llist.c +++ b/libbb/llist.c | |||
@@ -14,12 +14,12 @@ | |||
14 | 14 | ||
15 | #ifdef L_llist_add_to | 15 | #ifdef L_llist_add_to |
16 | /* Add data to the start of the linked list. */ | 16 | /* Add data to the start of the linked list. */ |
17 | llist_t *llist_add_to(llist_t *old_head, char *new_item) | 17 | llist_t *llist_add_to(llist_t *old_head, void *data) |
18 | { | 18 | { |
19 | llist_t *new_head; | 19 | llist_t *new_head; |
20 | 20 | ||
21 | new_head = xmalloc(sizeof(llist_t)); | 21 | new_head = xmalloc(sizeof(llist_t)); |
22 | new_head->data = new_item; | 22 | new_head->data = data; |
23 | new_head->link = old_head; | 23 | new_head->link = old_head; |
24 | 24 | ||
25 | return (new_head); | 25 | return (new_head); |
@@ -28,7 +28,7 @@ llist_t *llist_add_to(llist_t *old_head, char *new_item) | |||
28 | 28 | ||
29 | #ifdef L_llist_add_to_end | 29 | #ifdef L_llist_add_to_end |
30 | /* Add data to the end of the linked list. */ | 30 | /* Add data to the end of the linked list. */ |
31 | llist_t *llist_add_to_end(llist_t *list_head, char *data) | 31 | llist_t *llist_add_to_end(llist_t *list_head, void *data) |
32 | { | 32 | { |
33 | llist_t *new_item; | 33 | llist_t *new_item; |
34 | 34 | ||