aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-06 14:29:18 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-07 17:30:39 -0300
commitef03a8c52accf4180b48630cb66aef92d3c3ce78 (patch)
tree7dedda62643a3dcd8f37b33cc46ba472a6c21061 /src
parentd5b223afe22b0809e4718749a3cdc40ceb5434dd (diff)
downloadrneovim-ef03a8c52accf4180b48630cb66aef92d3c3ce78.tar.gz
rneovim-ef03a8c52accf4180b48630cb66aef92d3c3ce78.tar.bz2
rneovim-ef03a8c52accf4180b48630cb66aef92d3c3ce78.zip
Declare is_executable as static and remove its unit tests.
Testing the public interface mch_can_exe should suffice. Every former test of is_executable has a counterpart in the tests of mch_can_exe. Thus we can keep private things private.
Diffstat (limited to 'src')
-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 a1e3cd2899..fc9624dd90 100644
--- a/src/os/fs.c
+++ b/src/os/fs.c
@@ -192,12 +192,12 @@ int mch_isdir(char_u *name)
return TRUE;
}
-int is_executable(char_u *name);
+static int is_executable(char_u *name);
/*
* Return 1 if "name" is an executable file, 0 if not or it doesn't exist.
*/
-int is_executable(char_u *name)
+static int is_executable(char_u *name)
{
uv_fs_t request;
if (0 != uv_fs_stat(uv_default_loop(), &request, (const char*) name, NULL)) {