diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-09 20:02:07 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-09 20:02:07 +0200 |
commit | 549694bc88a7345c10551d13017fa8a0eccb8619 (patch) | |
tree | 1da27840ad10ac0f1b048f74a240647dee7148da /main.c | |
parent | d20af67ae8a6a573a0db906f9c9960a092f21b41 (diff) | |
download | egawk-549694bc88a7345c10551d13017fa8a0eccb8619.tar.gz egawk-549694bc88a7345c10551d13017fa8a0eccb8619.tar.bz2 egawk-549694bc88a7345c10551d13017fa8a0eccb8619.zip |
Change BINMODE to use symbolic values.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -611,10 +611,10 @@ out: if (preassigns != NULL) efree(preassigns); - if ((BINMODE & 1) != 0) + if ((BINMODE & BINMODE_INPUT) != 0) if (os_setbinmode(fileno(stdin), O_BINARY) == -1) fatal(_("can't set binary mode on stdin (%s)"), strerror(errno)); - if ((BINMODE & 2) != 0) { + if ((BINMODE & BINMODE_OUTPUT) != 0) { if (os_setbinmode(fileno(stdout), O_BINARY) == -1) fatal(_("can't set binary mode on stdout (%s)"), strerror(errno)); if (os_setbinmode(fileno(stderr), O_BINARY) == -1) |