Mercurial > vim
diff src/findfile.c @ 17789:0f7ae8010787 v8.1.1891
patch 8.1.1891: functions used in one file are global
commit https://github.com/vim/vim/commit/5843f5f37b0632e2d706abc9014bfd7d98f7b02e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 20 20:13:45 2019 +0200
patch 8.1.1891: functions used in one file are global
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4840)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Aug 2019 20:15:07 +0200 |
parents | ce04ebdf26b8 |
children | 46f95606b9ec |
line wrap: on
line diff
--- a/src/findfile.c +++ b/src/findfile.c @@ -188,6 +188,7 @@ static int ff_check_visited(ff_visited_T #else static int ff_check_visited(ff_visited_T **, char_u *); #endif +static void vim_findfile_free_visited(void *search_ctx_arg); static void vim_findfile_free_visited_list(ff_visited_list_hdr_T **list_headp); static void ff_free_visited_list(ff_visited_T *vl); static ff_visited_list_hdr_T* ff_get_visited_list(char_u *, ff_visited_list_hdr_T **list_headp); @@ -1186,7 +1187,7 @@ fail: * Free the list of lists of visited files and directories * Can handle it if the passed search_context is NULL; */ - void + static void vim_findfile_free_visited(void *search_ctx_arg) { ff_search_ctx_T *search_ctx;