aboutsummaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memfile.c')
-rw-r--r--src/memfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memfile.c b/src/memfile.c
index 30a5ed389d..3ca98603f9 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -239,7 +239,7 @@ void mf_close(memfile_T *mfp, int del_file)
EMSG(_(e_swapclose));
}
if (del_file && mfp->mf_fname != NULL)
- mch_remove(mfp->mf_fname);
+ os_remove((char *)mfp->mf_fname);
/* free entries in used list */
for (hp = mfp->mf_used_first; hp != NULL; hp = nextp) {
total_mem_used -= hp->bh_page_count * mfp->mf_page_size;
@@ -285,7 +285,7 @@ mf_close_file (
mfp->mf_fd = -1;
if (mfp->mf_fname != NULL) {
- mch_remove(mfp->mf_fname); /* delete the swap file */
+ os_remove((char *)mfp->mf_fname); // delete the swap file
vim_free(mfp->mf_fname);
vim_free(mfp->mf_ffname);
mfp->mf_fname = NULL;