aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-04 13:34:08 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-05 15:01:19 -0300
commit71ff9337d9338864bb3ea178dd869b73ede72f4b (patch)
treee09fb7554dcf0822309bd76d14b53432383a0959 /src/os_unix.c
parentc6917641c2793fe27c88659dcf466612957f2ec3 (diff)
downloadrneovim-71ff9337d9338864bb3ea178dd869b73ede72f4b.tar.gz
rneovim-71ff9337d9338864bb3ea178dd869b73ede72f4b.tar.bz2
rneovim-71ff9337d9338864bb3ea178dd869b73ede72f4b.zip
Remove static declaration of executable_file.
Since static functions are only visible in the file in which they are defined, this needs to be done in order to unit test the function.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 003e45c2a0..fdbaba466a 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1339,12 +1339,12 @@ int mch_isdir(char_u *name)
#endif
}
-static int executable_file(char_u *name);
+int executable_file(char_u *name);
/*
* Return 1 if "name" is an executable file, 0 if not or it doesn't exist.
*/
-static int executable_file(char_u *name)
+int executable_file(char_u *name)
{
struct stat st;