diff options
author | Elliott Hughes <enh@google.com> | 2019-10-18 17:13:40 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-21 16:50:25 -0500 |
commit | 40cff9274cface959806b0b3c3bf2508674cbba3 (patch) | |
tree | 4c4b94abc71523697e61fa87cc1214f7b74f4dc7 | |
parent | a6e03c3df5f87ad0904bc632aa1ce6df4d4e6b5c (diff) | |
download | toybox-40cff9274cface959806b0b3c3bf2508674cbba3.tar.gz |
xargs: fix type of a local to avoid a cast.
-rw-r--r-- | toys/posix/xargs.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |