aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-26 23:00:10 +0000
committerRob Landley <rob@landley.net>2006-05-26 23:00:10 +0000
commit5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb (patch)
tree0f5d3abe8e3c94c516037f1021cb356866e72f13
parentd765ee5d0fb3a8077dcf4b1520321089aa4104ce (diff)
downloadbusybox-5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb.tar.gz
Slight sanity fix: data is void *, not char *. And it's called data
almost everywhere, so be consistent.
-rw-r--r--include/libbb.h4
-rw-r--r--libbb/llist.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 64c91b170..93b29c6ae 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, char *new_item);
-extern llist_t *llist_add_to_end(llist_t *list_head, char *data);
+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_pop(llist_t **elm);
extern void llist_free(llist_t *elm, void (*freeit)(void *data));
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;