aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-07-19 15:30:57 +0200
committerDundar Goc <gocdundar@gmail.com>2022-07-31 00:52:59 +0200
commit824a729628950d72834b98faf28d18b7a94eefb2 (patch)
treed8640bdac1d1e03e340787406328f45247c63509 /src/nvim/quickfix.c
parent9511faa819e8260aa7ae2c2ff140070bbc96efa9 (diff)
downloadrneovim-824a729628950d72834b98faf28d18b7a94eefb2.tar.gz
rneovim-824a729628950d72834b98faf28d18b7a94eefb2.tar.bz2
rneovim-824a729628950d72834b98faf28d18b7a94eefb2.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index bdfaa11935..03d81d586e 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -5439,7 +5439,7 @@ static int vgr_process_args(exarg_T *eap, vgr_args_T *args)
}
// Parse the list of arguments, wildcards have already been expanded.
- if (get_arglist_exp((char_u *)p, &args->fcount, (char_u ***)&args->fnames, true) == FAIL) {
+ if (get_arglist_exp((char_u *)p, &args->fcount, &args->fnames, true) == FAIL) {
return FAIL;
}
if (args->fcount == 0) {
@@ -5615,12 +5615,12 @@ void ex_vimgrep(exarg_T *eap)
int status = vgr_process_files(wp, qi, &args, &redraw_for_dummy, &first_match_buf, &target_dir);
if (status != OK) {
- FreeWild(args.fcount, (char_u **)args.fnames);
+ FreeWild(args.fcount, args.fnames);
decr_quickfix_busy();
goto theend;
}
- FreeWild(args.fcount, (char_u **)args.fnames);
+ FreeWild(args.fcount, args.fnames);
qf_list_T *qfl = qf_get_curlist(qi);
qfl->qf_nonevalid = false;
@@ -7165,8 +7165,7 @@ static void hgr_search_files_in_dir(qf_list_T *qfl, char *dirname, regmatch_T *p
// Find all "*.txt" and "*.??x" files in the "doc" directory.
add_pathsep(dirname);
STRCAT(dirname, "doc/*.\\(txt\\|??x\\)"); // NOLINT
- if (gen_expand_wildcards(1, (char_u **)&dirname, &fcount,
- (char_u ***)&fnames, EW_FILE|EW_SILENT) == OK
+ if (gen_expand_wildcards(1, &dirname, &fcount, &fnames, EW_FILE|EW_SILENT) == OK
&& fcount > 0) {
for (int fi = 0; fi < fcount && !got_int; fi++) {
// Skip files for a different language.
@@ -7180,7 +7179,7 @@ static void hgr_search_files_in_dir(qf_list_T *qfl, char *dirname, regmatch_T *p
hgr_search_file(qfl, fnames[fi], p_regmatch);
}
- FreeWild(fcount, (char_u **)fnames);
+ FreeWild(fcount, fnames);
}
}