diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-07-14 09:06:36 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-14 09:06:36 -0400 |
commit | f693b4043d29ec21d990661450cdbd353da0e036 (patch) | |
tree | 4e06241295ab8e32358a06eff245431daae52d24 /src/nvim/ex_cmds2.c | |
parent | bf6b0e3c0aa34beca13eee898decdf0fcde8b502 (diff) | |
parent | 0ceebc2c913cc497735e001772cb6b395c36cecc (diff) | |
download | rneovim-f693b4043d29ec21d990661450cdbd353da0e036.tar.gz rneovim-f693b4043d29ec21d990661450cdbd353da0e036.tar.bz2 rneovim-f693b4043d29ec21d990661450cdbd353da0e036.zip |
Merge #846 'impl mch_open with libuv'
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 3158eafe65..85a9e9315a 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -2372,9 +2372,9 @@ int source_level(void *cookie) */ static FILE *fopen_noinh_readbin(char *filename) { - int fd_tmp = mch_open(filename, O_RDONLY, 0); + int fd_tmp = os_open(filename, O_RDONLY, 0); - if (fd_tmp == -1) + if (fd_tmp < 0) return NULL; # ifdef HAVE_FD_CLOEXEC |