From 40cff9274cface959806b0b3c3bf2508674cbba3 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 18 Oct 2019 17:13:40 -0700 Subject: xargs: fix type of a local to avoid a cast. --- toys/posix/xargs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toys/posix/xargs.c') diff --git a/toys/posix/xargs.c b/toys/posix/xargs.c index f76a5fce..8997a443 100644 --- a/toys/posix/xargs.c +++ b/toys/posix/xargs.c @@ -133,11 +133,11 @@ void xargs_main(void) // Read line if (!data) { - ssize_t l = 0; - if (getdelim(&data, (size_t *)&l, TT.delim, stdin)<0) { + size_t l = 0; + + if (getdelim(&data, &l, TT.delim, stdin)<0) { data = 0; done++; - break; } } -- cgit v1.2.3