aboutsummaryrefslogtreecommitdiff
path: root/toys/which.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-07-15 17:22:04 -0500
committerRob Landley <rob@landley.net>2012-07-15 17:22:04 -0500
commit9e2b6db36ab6486172fccd0e1786532826d58c53 (patch)
tree8027567bf76e073ad13594d634e0268de6f83e05 /toys/which.c
parent2037b8396427ab82edd1912357e9177a2800b01a (diff)
downloadtoybox-9e2b6db36ab6486172fccd0e1786532826d58c53.tar.gz
Genericize llist code a bit: rename llist_free() to llist_traverse(), and no longer accept NULL as a synonym for free.
Diffstat (limited to 'toys/which.c')
-rw-r--r--toys/which.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/which.c b/toys/which.c
index 0ffc725a..4923859c 100644
--- a/toys/which.c
+++ b/toys/which.c
@@ -53,7 +53,7 @@ static int which_in_path(char *filename)
puts(list->str);
// If we should stop at one match, do so
if (!toys.optflags) {
- llist_free(list, NULL);
+ llist_traverse(list, free);
break;
}
}