From 178e830378c3514b9c53a5b1c6d2d5f930c3779b Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Mon, 22 Feb 2010 19:13:30 +0000 Subject: [PATCH] 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 Reviewed-by: Colin Harrison --- hw/xwin/InitOutput.c | 7 ++++--- 1 file 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)