From 9e2b6db36ab6486172fccd0e1786532826d58c53 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 15 Jul 2012 17:22:04 -0500 Subject: Genericize llist code a bit: rename llist_free() to llist_traverse(), and no longer accept NULL as a synonym for free. --- toys/which.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/which.c') 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; } } -- cgit v1.2.3