Skip to content

Commit d849279

Browse files
committed
patch 8.0.0460: can't build on HPUX
Problem: Can't build on HPUX. Solution: Fix argument names in vim_stat(). (John Marriott)
1 parent fe70c51 commit d849279

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/misc2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,7 +3365,7 @@ vim_chdirfile(char_u *fname)
33653365
* The Vim code assumes a trailing slash is only ignored for a directory.
33663366
*/
33673367
static int
3368-
illegal_slash(char *name)
3368+
illegal_slash(const char *name)
33693369
{
33703370
if (name[0] == NUL)
33713371
return FALSE; /* no file name is not illegal */
@@ -3384,7 +3384,7 @@ vim_stat(const char *name, stat_T *stp)
33843384
{
33853385
/* On Solaris stat() accepts "file/" as if it was "file". Return -1 if
33863386
* the name ends in "/" and it's not a directory. */
3387-
return illegal_slash(n) ? -1 : stat(n, p);
3387+
return illegal_slash(name) ? -1 : stat(name, stp);
33883388
}
33893389
#endif
33903390

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
460,
767769
/**/
768770
459,
769771
/**/

0 commit comments

Comments
 (0)