]> granicus.if.org Git - vim/commitdiff
patch 8.0.0460: can't build on HPUX v8.0.0460
authorBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2017 11:22:38 +0000 (12:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2017 11:22:38 +0000 (12:22 +0100)
Problem:    Can't build on HPUX.
Solution:   Fix argument names in vim_stat(). (John Marriott)

src/misc2.c
src/version.c

index 4777129efa90bb3a67516a61a01c6ee7958857e2..522fcb685cd8e1cbe394fff6fde881c70a89ddf4 100644 (file)
@@ -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
 
index b907c753165ed0bfc30217a9dc9184a76eb9d1a6..71a769fe729a32d2d5e2b0ebcb7c86a71dce4642 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    460,
 /**/
     459,
 /**/