aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/llist.c6
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. */
17llist_t *llist_add_to(llist_t *old_head, char *new_item) 17llist_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. */
31llist_t *llist_add_to_end(llist_t *list_head, char *data) 31llist_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