diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-26 11:18:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-26 11:18:19 +0200 |
| commit | b42bfa599b3fc15d0b613cfcff8c742e57854cf3 (patch) | |
| tree | 14de0a1eb8da856c567256a9b8acf6e5d0005c4f /src/nvim/ex_cmds2.c | |
| parent | 8a9c9a996322a1d111c55efb156710add68da358 (diff) | |
| parent | 2731080212fad1430becae0cb56fe33238e7e24a (diff) | |
| download | rneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.tar.gz rneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.tar.bz2 rneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.zip | |
Merge #10589 'os/fs: introduce os_fopen()'
Diffstat (limited to 'src/nvim/ex_cmds2.c')
| -rw-r--r-- | src/nvim/ex_cmds2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 9e915dfc8b..cd0b05c6c9 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -990,7 +990,7 @@ void profile_dump(void) FILE *fd; if (profile_fname != NULL) { - fd = mch_fopen((char *)profile_fname, "w"); + fd = os_fopen((char *)profile_fname, "w"); if (fd == NULL) { EMSG2(_(e_notopen), profile_fname); } else { @@ -1139,7 +1139,7 @@ static void script_dump_profile(FILE *fd) fprintf(fd, "\n"); fprintf(fd, "count total (s) self (s)\n"); - sfd = mch_fopen((char *)si->sn_name, "r"); + sfd = os_fopen((char *)si->sn_name, "r"); if (sfd == NULL) { fprintf(fd, "Cannot open file!\n"); } else { @@ -2858,7 +2858,7 @@ static int requires_py_version(char_u *filename) lines = 5; } - file = mch_fopen((char *)filename, "r"); + file = os_fopen((char *)filename, "r"); if (file != NULL) { for (i = 0; i < lines; i++) { if (vim_fgets(IObuff, IOSIZE, file)) { |