aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/xargs.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-12-04 21:29:51 -0600
committerRob Landley <rob@landley.net>2018-12-04 21:29:51 -0600
commit747e296ff656813340c9355d98b0a13cba8473bc (patch)
treee7ef2b20be56e2e5a2062168aa822fd6c6139b7d /toys/posix/xargs.c
parent141a075c0e192dc9910e777270114b1864270bfd (diff)
downloadtoybox-747e296ff656813340c9355d98b0a13cba8473bc.tar.gz
Add FLAG(x) macro, expanding to (toys.optflags & FLAG_##x)
Diffstat (limited to 'toys/posix/xargs.c')
-rw-r--r--toys/posix/xargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/xargs.c b/toys/posix/xargs.c
index aaa0ac79..d25a2e3f 100644
--- a/toys/posix/xargs.c
+++ b/toys/posix/xargs.c
@@ -120,7 +120,7 @@ void xargs_main(void)
posix_max_bytes = sysconf(_SC_ARG_MAX) - environ_bytes() - 2048;
if (!TT.s || TT.s > posix_max_bytes) TT.s = posix_max_bytes;
- if (!(toys.optflags & FLAG_0)) TT.delim = '\n';
+ if (!FLAG(0)) TT.delim = '\n';
// If no optargs, call echo.
if (!toys.optc) {