Skip to content

Commit fdcc9af

Browse files
committed
patch 7.4.1460
Problem: Syntax error in rarily used code. Solution: Fix the mch_rename() declaration. (Ken Takata)
1 parent e081e21 commit fdcc9af

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/os_unix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6454,14 +6454,14 @@ have_dollars(int num, char_u **file)
64546454
}
64556455
#endif /* ifndef __EMX__ */
64566456

6457-
#ifndef HAVE_RENAME
6457+
#if !defined(HAVE_RENAME) || defined(PROTO)
64586458
/*
64596459
* Scaled-down version of rename(), which is missing in Xenix.
64606460
* This version can only move regular files and will fail if the
64616461
* destination exists.
64626462
*/
64636463
int
6464-
mch_rename(const char *src, *dest)
6464+
mch_rename(const char *src, const char *dest)
64656465
{
64666466
struct stat st;
64676467

src/proto/os_unix.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ int mch_expandpath(garray_T *gap, char_u *path, int flags);
6666
int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file, int flags);
6767
int mch_has_exp_wildcard(char_u *p);
6868
int mch_has_wildcard(char_u *p);
69+
int mch_rename(const char *src, const char *dest);
6970
int mch_libcall(char_u *libname, char_u *funcname, char_u *argstring, int argint, char_u **string_result, int *number_result);
7071
void setup_term_clip(void);
7172
void start_xterm_trace(int button);

src/version.c

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

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1460,
746748
/**/
747749
1459,
748750
/**/

0 commit comments

Comments
 (0)