aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 9727140597..d5dcde128d 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1256,7 +1256,7 @@ int flags; /* EW_* flags */
vim_free(command);
if (i != 0) { /* mch_call_shell() failed */
- mch_remove(tempname);
+ os_remove((char *)tempname);
vim_free(tempname);
/*
* With interactive completion, the error message is not printed.
@@ -1296,7 +1296,7 @@ int flags; /* EW_* flags */
buffer = alloc(len + 1);
i = fread((char *)buffer, 1, len, fd);
fclose(fd);
- mch_remove(tempname);
+ os_remove((char *)tempname);
if (i != (int)len) {
/* unexpected read error */
EMSG2(_(e_notread), tempname);