diff options
author | Rob Landley <rob@landley.net> | 2018-12-04 21:29:51 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-12-04 21:29:51 -0600 |
commit | 747e296ff656813340c9355d98b0a13cba8473bc (patch) | |
tree | e7ef2b20be56e2e5a2062168aa822fd6c6139b7d /toys/posix/tee.c | |
parent | 141a075c0e192dc9910e777270114b1864270bfd (diff) | |
download | toybox-747e296ff656813340c9355d98b0a13cba8473bc.tar.gz |
Add FLAG(x) macro, expanding to (toys.optflags & FLAG_##x)
Diffstat (limited to 'toys/posix/tee.c')
-rw-r--r-- | toys/posix/tee.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/tee.c b/toys/posix/tee.c index 90098ce7..78139a8d 100644 --- a/toys/posix/tee.c +++ b/toys/posix/tee.c @@ -45,11 +45,11 @@ static void do_tee_open(int fd, char *name) void tee_main(void) { - if (toys.optflags & FLAG_i) xsignal(SIGINT, SIG_IGN); + if (FLAG(i)) xsignal(SIGINT, SIG_IGN); // Open output files loopfiles_rw(toys.optargs, - O_RDWR|O_CREAT|WARN_ONLY|((toys.optflags & FLAG_a)?O_APPEND:O_TRUNC), + O_RDWR|O_CREAT|WARN_ONLY|(FLAG(a)?O_APPEND:O_TRUNC), 0666, do_tee_open); for (;;) { |