diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-03 08:24:22 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-12-03 08:24:48 +0800 |
commit | 2ae0d32a72c3ee207b6f9cd48c4beffa6e7c774f (patch) | |
tree | 345bdaf306f0949f32ba41800821842da0326d1c /src/nvim/eval.c | |
parent | 10c50d9f30138e7811789ba1c62f4c520cf04c8f (diff) | |
download | rneovim-2ae0d32a72c3ee207b6f9cd48c4beffa6e7c774f.tar.gz rneovim-2ae0d32a72c3ee207b6f9cd48c4beffa6e7c774f.tar.bz2 rneovim-2ae0d32a72c3ee207b6f9cd48c4beffa6e7c774f.zip |
refactor: make sure getting a callback doesn't modify argument
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 6d8f4d092c..fdb379a682 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -5511,7 +5511,7 @@ void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv, bool retlist } /// Get a callback from "arg". It can be a Funcref or a function name. -bool callback_from_typval(Callback *const callback, typval_T *const arg) +bool callback_from_typval(Callback *const callback, const typval_T *const arg) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT { int r = OK; |