aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPaul Eggert2016-04-14 09:47:18 -0700
committerPaul Eggert2016-04-14 09:48:36 -0700
commitc2ce5476dcde1ab9a7651a4c8a7b29a398b435ce (patch)
tree5efd7c2437eb94e2878c312c59b7ba4e5d8c75c3 /src/image.c
parent177d40de6bddf26c28f065927cd439281e56b325 (diff)
downloademacs-c2ce5476dcde1ab9a7651a4c8a7b29a398b435ce.tar.gz
emacs-c2ce5476dcde1ab9a7651a4c8a7b29a398b435ce.zip
Simplify use of O_BINARY
* src/callproc.c (call_process): * src/fileio.c (write_region): * src/filelock.c (read_lock_data): * src/image.c (x_find_image_fd): * src/lread.c (openp): * src/sysdep.c (init_random, emacs_fopen): * src/unexcw.c (unexec): Omit unnecessary use of O_BINARY, since emacs_open now arranges that for us.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 867450567c2..2a7c2ccc82d 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2300,7 +2300,7 @@ x_find_image_fd (Lisp_Object file, int *pfd)
2300 happens, e.g., under Auto Image File Mode.) 'openp' 2300 happens, e.g., under Auto Image File Mode.) 'openp'
2301 didn't open the file, so we should, because the caller 2301 didn't open the file, so we should, because the caller
2302 expects that. */ 2302 expects that. */
2303 fd = emacs_open (SSDATA (file_found), O_RDONLY | O_BINARY, 0); 2303 fd = emacs_open (SSDATA (file_found), O_RDONLY, 0);
2304 } 2304 }
2305 } 2305 }
2306 else /* fd < 0, but not -2 */ 2306 else /* fd < 0, but not -2 */