diff options
| author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-06 16:10:03 +0100 | 
|---|---|---|
| committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-07 17:30:39 -0300 | 
| commit | e59f9872e5b654edaacb8d4117b04c13d2caa65e (patch) | |
| tree | 31ba1a0b1815d5dcb660bb964380b47f2dd3b2e1 | |
| parent | b552a202f490049a4e243e31eabe31a52fd2585a (diff) | |
| download | rneovim-e59f9872e5b654edaacb8d4117b04c13d2caa65e.tar.gz rneovim-e59f9872e5b654edaacb8d4117b04c13d2caa65e.tar.bz2 rneovim-e59f9872e5b654edaacb8d4117b04c13d2caa65e.zip | |
Remove unused return values.
| -rw-r--r-- | src/os/fs.c | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/src/os/fs.c b/src/os/fs.c index da1309b24c..d8b1fc7cb0 100644 --- a/src/os/fs.c +++ b/src/os/fs.c @@ -196,8 +196,8 @@ static int is_executable(char_u *name);  static int is_executable_in_path(char_u *name);  /* - * Return 1 if "name" can be found in $PATH and executed, 0 if not. - * Return -1 if unknown. + * Return TRUE if "name" is executable and can be found in $PATH, is absolute + * or relative to current dir, FALSE if not.   */  int mch_can_exe(char_u *name)  { @@ -229,18 +229,22 @@ static int is_executable(char_u *name)    return FALSE;  } +/* + * Return TRUE if "name" can be found in $PATH and executed, FALSE if not or an + * error occurs. + */  static int is_executable_in_path(char_u *name)  {    char_u *path = (char_u *)getenv("PATH");    /* PATH environment variable does not exist or is empty. */    if (path == NULL || *path == NUL) { -    return -1; +    return FALSE;    }    int buf_len = STRLEN(name) + STRLEN(path) + 2;    char_u *buf = alloc((unsigned)(buf_len));    if (buf == NULL) { -    return -1; +    return FALSE;    }    /* | 
