aboutsummaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/memline.c b/src/memline.c
index d60f348fc4..469518d70c 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -3727,11 +3727,12 @@ findswapname (
same = TRUE;
close(f2);
if (created2)
- mch_remove(fname2);
+ os_remove((char *)fname2);
}
close(f1);
- if (created1)
- mch_remove(fname);
+ if (created1) {
+ os_remove((char *)fname);
+ }
}
vim_free(fname2);
if (same) {
@@ -3867,7 +3868,7 @@ findswapname (
if (dummyfd != NULL) {
fclose(dummyfd);
dummyfd = NULL;
- mch_remove(buf_fname);
+ os_remove(buf_fname);
did_use_dummy = TRUE;
}
#endif
@@ -3941,7 +3942,7 @@ findswapname (
swap_exists_action = SEA_RECOVER;
break;
case 4:
- mch_remove(fname);
+ os_remove((char *)fname);
break;
case 5:
swap_exists_action = SEA_QUIT;
@@ -3996,7 +3997,7 @@ findswapname (
#ifdef CREATE_DUMMY_FILE
if (dummyfd != NULL) { /* file has been created temporarily */
fclose(dummyfd);
- mch_remove(buf_fname);
+ os_remove(buf_fname);
}
#endif
return fname;