aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-07-03 21:27:25 +0200
committerNicolas Hillegeer <nicolas@hillegeer.com>2014-07-16 17:12:35 +0200
commit9386f5d41ec57f5624c27b7f8b49dd89b3d4a419 (patch)
tree2e2c4ed825df5f2497ba593cdd157ecbad07617c /src
parentdb7cd61f6297aab6343f7c6cd424d8987ca03a58 (diff)
downloadrneovim-9386f5d41ec57f5624c27b7f8b49dd89b3d4a419.tar.gz
rneovim-9386f5d41ec57f5624c27b7f8b49dd89b3d4a419.tar.bz2
rneovim-9386f5d41ec57f5624c27b7f8b49dd89b3d4a419.zip
profiling: move static to function scope
It wasn't used anywhere else, our coding guidelines mandate the tightest scope possible.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_cmds2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index 4eb1839d40..c87f134ea2 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -746,13 +746,14 @@ void dbg_breakpoint(char_u *name, linenr_T lnum)
}
static char_u *profile_fname = NULL;
-static proftime_T pause_time;
/*
* ":profile cmd args"
*/
void ex_profile(exarg_T *eap)
{
+ static proftime_T pause_time;
+
char_u *e;
int len;