patch 8.1.2021: some global functions can be local to the file
Problem: Some global functions can be local to the file.
Solution: Add "static". (Yegappan Lakshmanan, closes #4917)
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 6eafd47..81f2c8f 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -260,7 +260,7 @@
/*
* Find a timer by ID. Returns NULL if not found;
*/
- timer_T *
+ static timer_T *
find_timer(long id)
{
timer_T *timer;
@@ -291,7 +291,7 @@
}
}
- void
+ static void
stop_all_timers(void)
{
timer_T *timer;
@@ -304,7 +304,7 @@
}
}
- void
+ static void
add_timer_info(typval_T *rettv, timer_T *timer)
{
list_T *list = rettv->vval.v_list;
@@ -338,7 +338,7 @@
}
}
- void
+ static void
add_timer_info_all(typval_T *rettv)
{
timer_T *timer;