Mercurial > vim
changeset 11146:6ce90f33373f v8.0.0460
patch 8.0.0460: can't build on HPUX
commit https://github.com/vim/vim/commit/d8492792f26c5bbdefc8f452a393621f055edd8c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 16 12:22:38 2017 +0100
patch 8.0.0460: can't build on HPUX
Problem: Can't build on HPUX.
Solution: Fix argument names in vim_stat(). (John Marriott)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 12:30:04 +0100 |
parents | e84f9f9b5d49 |
children | e6281b7c5883 |
files | src/misc2.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc2.c +++ b/src/misc2.c @@ -3365,7 +3365,7 @@ vim_chdirfile(char_u *fname) * The Vim code assumes a trailing slash is only ignored for a directory. */ static int -illegal_slash(char *name) +illegal_slash(const char *name) { if (name[0] == NUL) return FALSE; /* no file name is not illegal */ @@ -3384,7 +3384,7 @@ vim_stat(const char *name, stat_T *stp) { /* On Solaris stat() accepts "file/" as if it was "file". Return -1 if * the name ends in "/" and it's not a directory. */ - return illegal_slash(n) ? -1 : stat(n, p); + return illegal_slash(name) ? -1 : stat(name, stp); } #endif