diff options
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/ls.c | 2 | ||||
-rw-r--r-- | toys/posix/tail.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c index 55de239f..fb45636b 100644 --- a/toys/posix/ls.c +++ b/toys/posix/ls.c @@ -445,7 +445,7 @@ void ls_main(void) } // 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); } 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; |