cleanup: remove mch_fopen in favor of os_fopen

This commit is contained in:
Justin M. Keyes
2019-07-25 22:28:19 +02:00
parent bb3a0099c6
commit 2731080212
18 changed files with 50 additions and 49 deletions

View File

@@ -1008,10 +1008,10 @@ static int cs_find_common(char *opt, char *pat, int forceit, int verbose,
qf_info_T *qi = NULL;
win_T *wp = NULL;
f = mch_fopen((char *)tmp, "w");
if (f == NULL)
f = os_fopen((char *)tmp, "w");
if (f == NULL) {
EMSG2(_(e_notopen), tmp);
else {
} else {
cs_file_results(f, nummatches);
fclose(f);
if (use_ll) /* Use location list */