diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-02-25 17:03:04 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-02-25 14:26:21 -0300 |
commit | 1e2da25d3da075c87fababccae0c58d6ffa7df21 (patch) | |
tree | 0647ea3070cba8936213da6835de260e45920968 /src/os_unix.c | |
parent | d342257ae414a98be74b2a58382678eef7249ebc (diff) | |
download | rneovim-1e2da25d3da075c87fababccae0c58d6ffa7df21.tar.gz rneovim-1e2da25d3da075c87fababccae0c58d6ffa7df21.tar.bz2 rneovim-1e2da25d3da075c87fababccae0c58d6ffa7df21.zip |
os_unix: Use libuv uv_cwd instead of getcwd/getwd.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index f65b285ba7..2bfddafc6c 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1245,24 +1245,6 @@ static char * strerror(int err) #endif /* - * Get name of current directory into buffer 'buf' of length 'len' bytes. - * Return OK for success, FAIL for failure. - */ -int mch_dirname(char_u *buf, int len) -{ -#if defined(USE_GETCWD) - if (getcwd((char *)buf, len) == NULL) { - STRCPY(buf, strerror(errno)); - return FAIL; - } - return OK; -#else - return getwd((char *)buf) != NULL ? OK : FAIL; -#endif -} - - -/* * Get absolute file name into "buf[len]". * * return FAIL for failure, OK for success |