diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-16 12:22:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-16 12:22:38 +0100 |
commit | d8492792f26c5bbdefc8f452a393621f055edd8c (patch) | |
tree | 58a8bd36446e1c8b84410238e0fa4738ba44f52a /src/misc2.c | |
parent | fe70c5198336dba7e8b0fa915e6c4350e7f80f6f (diff) | |
download | vim-git-d8492792f26c5bbdefc8f452a393621f055edd8c.tar.gz |
patch 8.0.0460: can't build on HPUXv8.0.0460
Problem: Can't build on HPUX.
Solution: Fix argument names in vim_stat(). (John Marriott)
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c index 4777129ef..522fcb685 100644 --- 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 |