From 7db4a15e95337fc9afe4b8d60ae14a62bebcc2d8 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 22 Aug 2014 03:15:00 +0000 Subject: os_nodetype: impl with libuv --- src/nvim/fileio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/fileio.c') 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"); -- cgit