refactor: replace char_u with char 18 (#21237)

refactor: replace char_u with char

Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
dundargoc
2023-01-09 15:37:34 +01:00
committed by GitHub
parent 9cd7edc6ad
commit 50f03773f4
45 changed files with 451 additions and 451 deletions

View File

@@ -1408,7 +1408,7 @@ char *find_file_in_path_option(char *ptr, size_t len, int options, int first, ch
&& rel_fname != NULL
&& strlen(rel_fname) + l < MAXPATHL) {
STRCPY(NameBuff, rel_fname);
STRCPY(path_tail((char *)NameBuff), ff_file_to_find);
STRCPY(path_tail(NameBuff), ff_file_to_find);
l = strlen(NameBuff);
} else {
STRCPY(NameBuff, ff_file_to_find);
@@ -1429,7 +1429,7 @@ char *find_file_in_path_option(char *ptr, size_t len, int options, int first, ch
break;
}
assert(MAXPATHL >= l);
copy_option_part(&buf, (char *)NameBuff + l, MAXPATHL - l, ",");
copy_option_part(&buf, NameBuff + l, MAXPATHL - l, ",");
}
}
}
@@ -1587,7 +1587,7 @@ int vim_chdirfile(char *fname, CdCause cause)
NameBuff[0] = NUL;
}
if (pathcmp(dir, (char *)NameBuff, -1) == 0) {
if (pathcmp(dir, NameBuff, -1) == 0) {
// nothing to do
return OK;
}