summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2012-01-11 22:10:41 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-11 22:30:38 +0100
commit0e72a704c45d58faa75fa61a87f07c6f2207cd47 (patch)
treec057d82d9a2a0f716fbbf4e5c35c0b045d51211c /apps
parent0415e5cb37b55940fa253baaccf6dd9131f2b6b7 (diff)
downloadmupdf-0e72a704c45d58faa75fa61a87f07c6f2207cd47.tar.xz
Do not unnecessarily use O_BINARY in X11 viewer.
Diffstat (limited to 'apps')
-rw-r--r--apps/x11_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c
index 1020350f..7b50daa9 100644
--- a/apps/x11_main.c
+++ b/apps/x11_main.c
@@ -499,7 +499,7 @@ void winreloadfile(pdfapp_t *app)
pdfapp_close(app);
- fd = open(filename, O_BINARY | O_RDONLY, 0666);
+ fd = open(filename, O_RDONLY, 0666);
if (fd < 0)
fz_throw(gapp.ctx, "cannot reload file '%s'", filename);
@@ -632,7 +632,7 @@ int main(int argc, char **argv)
gapp.resolution = resolution;
gapp.pageno = pageno;
- fd = open(filename, O_BINARY | O_RDONLY, 0666);
+ fd = open(filename, O_RDONLY, 0666);
if (fd < 0)
fz_throw(gapp.ctx, "cannot open file '%s'", filename);