summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-03 18:17:11 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-03 18:17:11 +0200
commitc6538bcc1cdd1fb83732f22fdc69bd9bb66f968a (patch)
tree80b89c210388f6e038ccbdc346f72a31bffd8430 /src/ex_cmds2.c
parent749fa0af85232be1d44b77a09161f71cdbace62c (diff)
patch 8.1.1800: function call functions have too many argumentsv8.1.1800
Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index a8be96dc32..c44ac8da17 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -110,15 +110,13 @@ create_timer(long msec, int repeat)
timer_callback(timer_T *timer)
{
typval_T rettv;
- int dummy;
typval_T argv[2];
argv[0].v_type = VAR_NUMBER;
argv[0].vval.v_number = (varnumber_T)timer->tr_id;
argv[1].v_type = VAR_UNKNOWN;
- call_callback(&timer->tr_callback, -1,
- &rettv, 1, argv, NULL, 0L, 0L, &dummy, TRUE, NULL);
+ call_callback(&timer->tr_callback, -1, &rettv, 1, argv);
clear_tv(&rettv);
}