diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-01 11:18:17 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-03 10:33:40 +0200 |
commit | b9bdd0f61e5e7365c07aadbc3f796556b6d85fdf (patch) | |
tree | 807bb0bcb4a551285e7c1f739b1b201d49d58261 /src/nvim/path.c | |
parent | 46734cf7c1e5abe8e452354db6914364bfe89f0d (diff) | |
download | rneovim-b9bdd0f61e5e7365c07aadbc3f796556b6d85fdf.tar.gz rneovim-b9bdd0f61e5e7365c07aadbc3f796556b6d85fdf.tar.bz2 rneovim-b9bdd0f61e5e7365c07aadbc3f796556b6d85fdf.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r-- | src/nvim/path.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c index 0ecdba468a..bf394ec9ab 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -1383,7 +1383,7 @@ static int expand_backtick(garray_T *gap, char_u *pat, int flags) char_u *cmd = vim_strnsave(pat + 1, STRLEN(pat) - 2); if (*cmd == '=') { // `={expr}`: Expand expression - buffer = eval_to_string(cmd + 1, &p, true); + buffer = (char_u *)eval_to_string((char *)cmd + 1, (char **)&p, true); } else { buffer = get_cmd_output(cmd, NULL, (flags & EW_SILENT) ? kShellOptSilent : 0, NULL); } @@ -1678,8 +1678,8 @@ void simplify_filename(char_u *filename) static char *eval_includeexpr(const char *const ptr, const size_t len) { set_vim_var_string(VV_FNAME, ptr, (ptrdiff_t)len); - char *res = (char *)eval_to_string_safe(curbuf->b_p_inex, NULL, - was_set_insecurely(curwin, "includeexpr", OPT_LOCAL)); + char *res = eval_to_string_safe((char *)curbuf->b_p_inex, NULL, + was_set_insecurely(curwin, "includeexpr", OPT_LOCAL)); set_vim_var_string(VV_FNAME, NULL, 0); return res; } |