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/tail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/tail.c') diff --git a/toys/tail.c b/toys/tail.c index a029eca9..8783d6ba 100644 --- a/toys/tail.c +++ b/toys/tail.c @@ -130,7 +130,7 @@ static int try_lseek(int fd, long bytes, long lines) } // Output stored data - llist_free(list, dump_chunk); + llist_traverse(list, dump_chunk); // In case of -f lseek(fd, bytes, SEEK_SET); @@ -201,7 +201,7 @@ static void do_tail(int fd, char *name) } // Output/free the buffer. - llist_free(list, dump_chunk); + llist_traverse(list, dump_chunk); // Measuring from the beginning of the file. } else for (;;) { -- cgit v1.2.3