diff toys/which.c @ 624:1e8b9acdafeb

Genericize llist code a bit: rename llist_free() to llist_traverse(), and no longer accept NULL as a synonym for free.
author Rob Landley <rob@landley.net>
date Sun, 15 Jul 2012 17:22:04 -0500
parents d51be130fda2
children
line wrap: on
line diff
--- a/toys/which.c	Sun Jul 15 16:56:20 2012 -0500
+++ b/toys/which.c	Sun Jul 15 17:22:04 2012 -0500
@@ -53,7 +53,7 @@
 			puts(list->str);
 			// If we should stop at one match, do so
 			if (!toys.optflags) {
-				llist_free(list, NULL);
+				llist_traverse(list, free);
 				break;
 			}
 		}