aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/file_search.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-07-31 16:20:57 +0200
committerDundar Göc <gocdundar@gmail.com>2022-08-25 18:59:12 +0200
commit40855b0143a864739a6037921e15699445dcf8a7 (patch)
tree61c7e85a2cad6ca5d97fd436056ce34d4a655698 /src/nvim/file_search.c
parent22f920030214c0023525c59daf763441baddba1a (diff)
downloadrneovim-40855b0143a864739a6037921e15699445dcf8a7.tar.gz
rneovim-40855b0143a864739a6037921e15699445dcf8a7.tar.bz2
rneovim-40855b0143a864739a6037921e15699445dcf8a7.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r--src/nvim/file_search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index 53f87d0e42..2e86e3f7b0 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -827,7 +827,7 @@ char_u *vim_findfile(void *search_ctx_arg)
if (search_ctx->ffsc_tagfile) {
suf = "";
} else {
- suf = (char *)curbuf->b_p_sua;
+ suf = curbuf->b_p_sua;
}
for (;;) {
// if file exists and we didn't already find it
@@ -1355,8 +1355,8 @@ char_u *find_file_in_path(char_u *ptr, size_t len, int options, int first, char_
return find_file_in_path_option(ptr, len, options, first,
(*curbuf->b_p_path == NUL
? p_path
- : curbuf->b_p_path),
- FINDFILE_BOTH, rel_fname, curbuf->b_p_sua);
+ : (char_u *)curbuf->b_p_path),
+ FINDFILE_BOTH, rel_fname, (char_u *)curbuf->b_p_sua);
}
static char_u *ff_file_to_find = NULL;