aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-01-20 17:34:53 -0600
committerRob Landley <rob@landley.net>2008-01-20 17:34:53 -0600
commit6ef04efa853b80c76ead2d252b3f4771f4c25d5d (patch)
tree527f7d3221c7147dbb5f8a8f0d057f2195bf6c9a /toys
parentb1aaba1fc8176ac0b7c202a664d2554aa0967116 (diff)
downloadtoybox-6ef04efa853b80c76ead2d252b3f4771f4c25d5d.tar.gz
Move dlist_add() to lib/llist.c
Diffstat (limited to 'toys')
-rw-r--r--toys/patch.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/toys/patch.c b/toys/patch.c
index 34d33c79..612b572b 100644
--- a/toys/patch.c
+++ b/toys/patch.c
@@ -70,20 +70,6 @@ static void do_line(void *data)
free(dlist->data);
}
-
-static void dlist_add(struct double_list **list, char *data)
-{
- struct double_list *line = xmalloc(sizeof(struct double_list));
-
- line->data = data;
- if (*list) {
- line->next = *list;
- line->prev = (*list)->prev;
- (*list)->prev->next = line;
- (*list)->prev = line;
- } else *list = line->next = line->prev = line;
-}
-
static void finish_oldfile(void)
{
if (TT.tempname) replace_tempfile(TT.filein, TT.fileout, &TT.tempname);