diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-04-29 00:42:55 -0400 | 
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-29 00:42:55 -0400 | 
| commit | a1d326a251dab756b2c3b6d98bca622da5a76c49 (patch) | |
| tree | 300039cad6d5f92237108168cbf322fab20b458c /src/nvim/fileio.c | |
| parent | 43e7c40051e9a3914ea280759982df6da2bfd526 (diff) | |
| parent | 7db4a15e95337fc9afe4b8d60ae14a62bebcc2d8 (diff) | |
| download | rneovim-a1d326a251dab756b2c3b6d98bca622da5a76c49.tar.gz rneovim-a1d326a251dab756b2c3b6d98bca622da5a76c49.tar.bz2 rneovim-a1d326a251dab756b2c3b6d98bca622da5a76c49.zip  | |
Merge pull request #1112 from justinmk/os_nodetype
os_nodetype: impl with libuv
Diffstat (limited to 'src/nvim/fileio.c')
| -rw-r--r-- | src/nvim/fileio.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index c431f721dd..b9d9ea5457 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -2576,7 +2576,7 @@ buf_write (          errmsg = (char_u *)_("is a directory");          goto fail;        } -      if (mch_nodetype(fname) != NODE_WRITABLE) { +      if (os_nodetype((char *)fname) != NODE_WRITABLE) {          errnum = (char_u *)"E503: ";          errmsg = (char_u *)_("is not a file or writable device");          goto fail; @@ -2588,11 +2588,11 @@ buf_write (        perm = -1;      }    } -#else /* !UNIX */ +#else /* win32 */        /*         * Check for a writable device name.         */ -  c = mch_nodetype(fname); +  c = os_nodetype((char *)fname);    if (c == NODE_OTHER) {      errnum = (char_u *)"E503: ";      errmsg = (char_u *)_("is not a file or writable device");  | 
