diff options
author | Rob Landley <rob@landley.net> | 2019-12-28 16:06:41 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-12-28 16:06:41 -0600 |
commit | a22594e2af9643570be0bbacc1e0b89d8316c9a7 (patch) | |
tree | fe00ec0d97d1ee1bd37575a63e2ca560ff9413ae /toys/other/base64.c | |
parent | b17fc0c2ce6581b7b48b8ffe457661b01289f8fe (diff) | |
download | toybox-a22594e2af9643570be0bbacc1e0b89d8316c9a7.tar.gz |
Cleanup: use FLAG() macros and new argument variable names.
Diffstat (limited to 'toys/other/base64.c')
-rw-r--r-- | toys/other/base64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/other/base64.c b/toys/other/base64.c index f1b617d6..ef7854a1 100644 --- a/toys/other/base64.c +++ b/toys/other/base64.c @@ -48,7 +48,7 @@ static void do_base64(int fd, char *name) for (;;) { // If no more data, flush buffer if (!(len = xread(fd, buf, sizeof(toybuf)-128))) { - if (!(toys.optflags & FLAG_d)) { + if (!FLAG(d)) { if (bits) wraputchar(toybuf[out<<(6-bits)], &x); while (TT.total&3) wraputchar('=', &x); if (x) xputc('\n'); @@ -58,7 +58,7 @@ static void do_base64(int fd, char *name) } for (i=0; i<len; i++) { - if (toys.optflags & FLAG_d) { + if (FLAG(d)) { if (buf[i] == '=') return; if ((x = stridx(toybuf, buf[i])) != -1) { @@ -72,7 +72,7 @@ static void do_base64(int fd, char *name) continue; } - if (buf[i] == '\n' || (toys.optflags & FLAG_i)) continue; + if (buf[i] == '\n' || FLAG(i)) continue; break; } else { |