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/hardcopy.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/hardcopy.c')
| -rw-r--r-- | src/nvim/hardcopy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c index 0001062588..3e0e438434 100644 --- a/src/nvim/hardcopy.c +++ b/src/nvim/hardcopy.c @@ -1670,7 +1670,7 @@ static int prt_open_resource(struct prt_ps_resource_S *resource) FILE *fd_resource; struct prt_dsc_line_S dsc_line; - fd_resource = mch_fopen((char *)resource->filename, READBIN); + fd_resource = os_fopen((char *)resource->filename, READBIN); if (fd_resource == NULL) { EMSG2(_("E624: Can't open file \"%s\""), resource->filename); return FALSE; @@ -2343,11 +2343,11 @@ int mch_print_init(prt_settings_T *psettings, char_u *jobname, int forceit) EMSG(_(e_notmp)); return FAIL; } - prt_ps_fd = mch_fopen((char *)prt_ps_file_name, WRITEBIN); + prt_ps_fd = os_fopen((char *)prt_ps_file_name, WRITEBIN); } else { p = expand_env_save(psettings->outfile); if (p != NULL) { - prt_ps_fd = mch_fopen((char *)p, WRITEBIN); + prt_ps_fd = os_fopen((char *)p, WRITEBIN); xfree(p); } } @@ -2382,7 +2382,7 @@ static int prt_add_resource(struct prt_ps_resource_S *resource) char_u resource_buffer[512]; size_t bytes_read; - fd_resource = mch_fopen((char *)resource->filename, READBIN); + fd_resource = os_fopen((char *)resource->filename, READBIN); if (fd_resource == NULL) { EMSG2(_("E456: Can't open file \"%s\""), resource->filename); return FALSE; |