summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2010-02-22 19:13:30 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2010-03-16 13:54:55 +0000
commit178e830378c3514b9c53a5b1c6d2d5f930c3779b (patch)
tree61f62fc840ceae1870f1e61afda96bf7dc5e67f2
parent67a8c659f25218904bae64aac6e98e326c90330b (diff)
Cygwin/X: Fix thinko in mount option checking
Fix a thinko in mount option checking. Use symbolic names for values assigned to binary flag for clarity. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
-rw-r--r--hw/xwin/InitOutput.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c
index acb7d4ab2..d8fd59f6c 100644
--- a/hw/xwin/InitOutput.c
+++ b/hw/xwin/InitOutput.c
@@ -1,3 +1,4 @@
+
/*
Copyright 1993, 1998 The Open Group
@@ -361,11 +362,11 @@ winCheckMount(void)
continue;
level = curlevel;
- if ((winCheckMntOpt(ent, "binary") == NULL) ||
+ if ((winCheckMntOpt(ent, "binary") == NULL) &&
(winCheckMntOpt(ent, "binmode") == NULL))
- binary = 0;
+ binary = FALSE;
else
- binary = 1;
+ binary = TRUE;
}
if (endmntent(mnt) != 1)