diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-10 21:27:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-10 21:27:18 +0200 |
commit | 840d16fd36bfd1a9fac8200e3dc016b1e3f9c328 (patch) | |
tree | e0b85aeb6c3da97a0f8096ef934372f9b297ba7b /src/undo.c | |
parent | d20dcb3d011da6111153109f6e46fbd5c7fe9fb6 (diff) | |
download | vim-git-840d16fd36bfd1a9fac8200e3dc016b1e3f9c328.tar.gz |
patch 8.1.2021: some global functions can be local to the filev8.1.2021
Problem: Some global functions can be local to the file.
Solution: Add "static". (Yegappan Lakshmanan, closes #4917)
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/undo.c b/src/undo.c index 8145af0f7..732efab9f 100644 --- a/src/undo.c +++ b/src/undo.c @@ -775,7 +775,7 @@ u_compute_hash(char_u *hash) * When "reading" is FALSE use the first name where the directory exists. * Returns NULL when there is no place to write or no file to read. */ - char_u * + static char_u * u_get_undo_file_name(char_u *buf_ffname, int reading) { char_u *dirp; @@ -3590,7 +3590,7 @@ curbufIsChanged(void) * For undotree(): Append the list of undo blocks at "first_uhp" to "list". * Recursive. */ - void + static void u_eval_tree(u_header_T *first_uhp, list_T *list) { u_header_T *uhp = first_uhp; |