Mercurial > hg > toybox
changeset 714:ed026abefd63
Squash "type punned pointer" nonsense with a bigger hammer. (Sheesh.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 26 Nov 2012 23:36:25 -0600 |
parents | ff8a27d3ab8f |
children | 3417db95f24b |
files | toys/posix/ls.c toys/posix/tail.c |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/posix/ls.c Mon Nov 26 23:24:07 2012 -0600 +++ b/toys/posix/ls.c Mon Nov 26 23:36:25 2012 -0600 @@ -445,7 +445,7 @@ } // Typecast means double_list->prev temporarirly goes in dirtree->parent - dlist_add_nomalloc((struct double_list **)&TT.files->child, + dlist_add_nomalloc((void *)&TT.files->child, (struct double_list *)dt); }
--- a/toys/posix/tail.c Mon Nov 26 23:24:07 2012 -0600 +++ b/toys/posix/tail.c Mon Nov 26 23:36:25 2012 -0600 @@ -156,8 +156,7 @@ 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;