aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-08-26 10:36:35 +0200
committerDundar Göc <gocdundar@gmail.com>2022-08-26 22:24:28 +0200
commit395277036014189c03b8969fc0a5cd2bdc5c8631 (patch)
tree27caaef2e0b8351eb5637d1a969229663ec2c4a8 /src/nvim/eval/funcs.c
parent6a13b8fa5460da5aa22a1c366e5252c26ed5fe1e (diff)
downloadrneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.tar.gz
rneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.tar.bz2
rneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
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);
}