aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-26 23:07:56 +0200
committerGitHub <noreply@github.com>2022-08-26 23:07:56 +0200
commitb0e052a8b30ce84221c3f992e111713451633b36 (patch)
tree27caaef2e0b8351eb5637d1a969229663ec2c4a8 /src/nvim/eval/funcs.c
parent6a13b8fa5460da5aa22a1c366e5252c26ed5fe1e (diff)
parent395277036014189c03b8969fc0a5cd2bdc5c8631 (diff)
downloadrneovim-b0e052a8b30ce84221c3f992e111713451633b36.tar.gz
rneovim-b0e052a8b30ce84221c3f992e111713451633b36.tar.bz2
rneovim-b0e052a8b30ce84221c3f992e111713451633b36.zip
Merge pull request #19957 from dundargoc/refactor/char_u/1
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index 78298765a0..581f187140 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -8379,7 +8379,7 @@ static void f_strftime(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
conv.vc_type = CONV_NONE;
enc = enc_locale();
- convert_setup(&conv, p_enc, enc);
+ convert_setup(&conv, (char_u *)p_enc, enc);
if (conv.vc_type != CONV_NONE) {
p = (char *)string_convert(&conv, (char_u *)p, NULL);
}
@@ -8393,7 +8393,7 @@ static void f_strftime(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
if (conv.vc_type != CONV_NONE) {
xfree(p);
}
- convert_setup(&conv, enc, p_enc);
+ convert_setup(&conv, enc, (char_u *)p_enc);
if (conv.vc_type != CONV_NONE) {
rettv->vval.v_string = (char *)string_convert(&conv, (char_u *)result_buf, NULL);
} else {
@@ -8639,7 +8639,7 @@ static void f_strptime(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
.vc_type = CONV_NONE,
};
char_u *enc = enc_locale();
- convert_setup(&conv, p_enc, enc);
+ convert_setup(&conv, (char_u *)p_enc, enc);
if (conv.vc_type != CONV_NONE) {
fmt = (char *)string_convert(&conv, (char_u *)fmt, NULL);
}