aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/converter.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-04 18:27:22 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-05 18:10:46 +0200
commit9a671e6a24243a5ff2879599d91ab5aec8b4e77d (patch)
tree703693c3591ed6b8881ed965f7f2ed2394a29ce6 /src/nvim/api/private/converter.c
parent82c7a82c3585100e73e154c49e3e002b7dc35437 (diff)
downloadrneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.tar.gz
rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.tar.bz2
rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/api/private/converter.c')
-rw-r--r--src/nvim/api/private/converter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/api/private/converter.c b/src/nvim/api/private/converter.c
index a26383ec7d..8724ef4432 100644
--- a/src/nvim/api/private/converter.c
+++ b/src/nvim/api/private/converter.c
@@ -353,9 +353,10 @@ bool object_to_vim(Object obj, typval_T *tv, Error *err)
case kObjectTypeLuaRef: {
LuaCFunctionState *state = xmalloc(sizeof(LuaCFunctionState));
state->lua_callable.func_ref = api_new_luaref(obj.data.luaref);
- char_u *name = register_cfunc(&nlua_CFunction_func_call, &nlua_CFunction_func_free, state);
+ char *name =
+ (char *)register_cfunc(&nlua_CFunction_func_call, &nlua_CFunction_func_free, state);
tv->v_type = VAR_FUNC;
- tv->vval.v_string = vim_strsave(name);
+ tv->vval.v_string = xstrdup(name);
break;
}