aboutsummaryrefslogtreecommitdiff
path: root/src/os/fs.c
diff options
context:
space:
mode:
authorStefan Hoffmann <stefan991@gmail.com>2014-03-16 17:45:25 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-03 10:30:03 -0300
commit5a2c9e123e4f42a037dbd652c6c42cae943a5654 (patch)
treef8fb3908300aa9ed5154d0273f4b69351e959a2c /src/os/fs.c
parentf762a9e195cdd1db3d57561a5e82a1ea6799d8ba (diff)
downloadrneovim-5a2c9e123e4f42a037dbd652c6c42cae943a5654.tar.gz
rneovim-5a2c9e123e4f42a037dbd652c6c42cae943a5654.tar.bz2
rneovim-5a2c9e123e4f42a037dbd652c6c42cae943a5654.zip
remove mch_access macro as it is only used in fs.c
Diffstat (limited to 'src/os/fs.c')
-rw-r--r--src/os/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/fs.c b/src/os/fs.c
index db366769b2..fdf9d0795e 100644
--- a/src/os/fs.c
+++ b/src/os/fs.c
@@ -281,7 +281,7 @@ int os_file_exists(const char_u *name)
// return TRUE if a file appears to be read-only from the file permissions.
int os_file_is_readonly(const char *name)
{
- if (mch_access(name, W_OK) == 0) {
+ if (access(name, W_OK) == 0) {
return FALSE;
} else {
return TRUE;
@@ -292,7 +292,7 @@ int os_file_is_readonly(const char *name)
// rights to write into.
int os_file_is_writable(const char *name)
{
- if (mch_access(name, W_OK) == 0) {
+ if (access(name, W_OK) == 0) {
if (os_isdir((char_u *)name)) {
return 2;
}