refactor: replace char_u with char

Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
Dundar Göc
2022-08-26 23:11:25 +02:00
parent 09c6ce8c4e
commit 691f4715c0
41 changed files with 497 additions and 520 deletions

View File

@@ -674,7 +674,7 @@ static void fname2fnum(xfmark_T *fm)
)) {
int len;
expand_env((char_u *)"~/", NameBuff, MAXPATHL);
expand_env((char_u *)"~/", (char_u *)NameBuff, MAXPATHL);
len = (int)STRLEN(NameBuff);
STRLCPY(NameBuff + len, fm->fname + 2, MAXPATHL - len);
} else {
@@ -683,7 +683,7 @@ static void fname2fnum(xfmark_T *fm)
// Try to shorten the file name.
os_dirname(IObuff, IOSIZE);
p = path_shorten_fname(NameBuff, IObuff);
p = path_shorten_fname((char_u *)NameBuff, IObuff);
// buflist_new() will call fmarks_check_names()
(void)buflist_new((char *)NameBuff, (char *)p, (linenr_T)1, 0);