From a1df458524e9de0c19e4151e15765dc2bc508259 Mon Sep 17 00:00:00 2001 From: Stefan Hoffmann Date: Tue, 8 Apr 2014 22:01:33 +0200 Subject: removed mch_remove macro --- src/memfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/memfile.c') 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; -- cgit