[BusyBox-cvs] [BusyBox 0000204]: move llist_add_to_end() to libbb and add llist_free()
bugs at busybox.net
bugs at busybox.net
Mon May 2 17:02:10 UTC 2005
A NOTE has been added to this issue.
======================================================================
<http://busybox.net/bugs/view.php?id=204>
======================================================================
Reported By: bernhardf
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 204
Category: Other
Reproducibility: N/A
Severity: trivial
Priority: normal
Status: assigned
======================================================================
Date Submitted: 04-02-2005 01:48 PST
Last Modified: 05-02-2005 10:02 PDT
======================================================================
Summary: move llist_add_to_end() to libbb and add
llist_free()
Description:
Move llist_add_to_end() from ifupdown.c to libbb/llist_add_to.c
Add new llist_free() to libbb
Use llist_free() in grep.c, xargs.c (and pidof.c, patch in bug
http://busybox.net/bugs/view.php?id=168)
======================================================================
----------------------------------------------------------------------
bernhardf - 05-02-05 10:02
----------------------------------------------------------------------
I retract this patch (The snippet against xargs would have to be redone
proper, awk, sed and possibly other should be converted too).
xlist_t may better be dropped in favour of libbb.h's
typedef struct llist_s {
char *data;
#ifdef LLIST_LENGTH
size_t length;
#endif
struct llist_s *link;
} llist_t;
Also, these should be implemented and perused throughout list-using code,
i guess:
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 void llist_free_one(llist_t *llist);
extern void llist_free(llist_t *llist);
Issue History
Date Modified Username Field Change
======================================================================
04-02-05 01:48 bernhardf New Issue
04-02-05 01:48 bernhardf File Added: llist-trivia.01.diff
05-02-05 10:02 bernhardf Note Added: 0000200
======================================================================
More information about the busybox-cvs
mailing list