comparison src/misc1.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 04245f071792
children 6582dda76821
comparison
equal deleted inserted replaced
17788:2cf6b7b53b1d 17789:0f7ae8010787
3080 vim_free(buf); 3080 vim_free(buf);
3081 } 3081 }
3082 return new_fname; 3082 return new_fname;
3083 } 3083 }
3084 3084
3085 void 3085 static void
3086 prepare_to_exit(void) 3086 prepare_to_exit(void)
3087 { 3087 {
3088 #if defined(SIGHUP) && defined(SIG_IGN) 3088 #if defined(SIGHUP) && defined(SIG_IGN)
3089 /* Ignore SIGHUP, because a dropped connection causes a read error, which 3089 /* Ignore SIGHUP, because a dropped connection causes a read error, which
3090 * makes Vim exit and then handling SIGHUP causes various reentrance 3090 * makes Vim exit and then handling SIGHUP causes various reentrance