From c806c321575528e76c4479666d398a0534cb81d8 Mon Sep 17 00:00:00 2001 From: landley Date: Fri, 26 May 2006 23:00:10 +0000 Subject: 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 --- libbb/llist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbb') 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 @@ #ifdef L_llist_add_to /* Add data to the start of the linked list. */ -llist_t *llist_add_to(llist_t *old_head, char *new_item) +llist_t *llist_add_to(llist_t *old_head, void *data) { llist_t *new_head; new_head = xmalloc(sizeof(llist_t)); - new_head->data = new_item; + new_head->data = data; new_head->link = old_head; return (new_head); @@ -28,7 +28,7 @@ llist_t *llist_add_to(llist_t *old_head, char *new_item) #ifdef L_llist_add_to_end /* Add data to the end of the linked list. */ -llist_t *llist_add_to_end(llist_t *list_head, char *data) +llist_t *llist_add_to_end(llist_t *list_head, void *data) { llist_t *new_item; -- cgit v1.2.3-55-g6feb