From a5f8c733d478a57ad03c0b0efe7fa995e4c364a2 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 26 Nov 2012 23:36:25 -0600 Subject: Squash "type punned pointer" nonsense with a bigger hammer. (Sheesh.) --- toys/posix/tail.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'toys/posix/tail.c') diff --git a/toys/posix/tail.c b/toys/posix/tail.c index bdbbfb30..8f63902a 100644 --- a/toys/posix/tail.c +++ b/toys/posix/tail.c @@ -156,8 +156,7 @@ static void do_tail(int fd, char *name) if (!(new = get_chunk(fd, sizeof(toybuf)))) break; // append in order - dlist_add_nomalloc((struct double_list **)&list, - (struct double_list *)new); + dlist_add_nomalloc((void *)&list, (struct double_list *)new); // Measure new chunk, discarding extra data from buffer len = new->len; -- cgit v1.2.3