aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-09 20:02:07 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-09 20:02:07 +0200
commit549694bc88a7345c10551d13017fa8a0eccb8619 (patch)
tree1da27840ad10ac0f1b048f74a240647dee7148da /main.c
parentd20af67ae8a6a573a0db906f9c9960a092f21b41 (diff)
downloadegawk-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 2bb0b01f..4292874a 100644
--- a/main.c
+++ b/main.c
@@ -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)