aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-09 21:46:24 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-09 21:46:24 +0200
commit28f187d2b3871c0e76d301b51c4b4855bd3c56e4 (patch)
treeb6b56858a715d6402d14da96f78cd9b013e61f18 /main.c
parentf634938f90ef8c85cfd9ca7421f10f4b70c0137e (diff)
parent134fa0445295460d897661ee18027c645b2baa73 (diff)
downloadegawk-28f187d2b3871c0e76d301b51c4b4855bd3c56e4.tar.gz
egawk-28f187d2b3871c0e76d301b51c4b4855bd3c56e4.tar.bz2
egawk-28f187d2b3871c0e76d301b51c4b4855bd3c56e4.zip
Merge branch 'gawk-4.0-stable'
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 6174dd93..d054ec1a 100644
--- a/main.c
+++ b/main.c
@@ -628,10 +628,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)