Ken Takata <[email protected]> wrote:

> Hi Bram,
>
> 2016/1/31 Sun 4:31:47 UTC+9 Bram Moolenaar wrote:
>> Patch 7.4.1213
>> Problem:    Using old style function declarations.
>> Solution:   Change to new style function declarations. (script by Hirohito
>>             Higashi)
>> Files:      src/os_amiga.c, src/os_mac_conv.c, src/os_msdos.d, 
>> src/os_mswin.c,
>>             src/os_qnx.c, src/os_unix.c, src/os_vms.c, src/os_win16.c,
>>             src/os_win32.c, src/popupmnu.c, src/pty.c, src/quickfix.c,
>>             src/regexp.c, src/regexp_nfa.c, src/screen.c
>
> I found a syntax error in this patch.
> The following patch fixes it:
>
> --- a/src/os_unix.c
> +++ b/src/os_unix.c
> @@ -6461,7 +6461,7 @@ have_dollars(int num, char_u **file)
>   * destination exists.
>   */
>      int
> -mch_rename(const char *src, *dest)
> +mch_rename(const char *src, const char *dest)
>  {
>      struct stat            st;
>
>

Good catch. I see 2 more similar syntax errors
for mch_memmove(...) and getent(...).
Fixed in attached patch.

Dominique

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/misc2.c b/src/misc2.c
index c1519ef..dfe5535 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1735,7 +1735,7 @@ vim_memcmp(void *b1, void *b2, size_t len)
  * For systems that don't have a function that is guaranteed to do that (SYSV).
  */
     void
-mch_memmove(void *src_arg, *dst_arg, size_t len)
+mch_memmove(void *src_arg, void *dst_arg, size_t len)
 {
     /*
      * A void doesn't have a size, we use char pointers.
diff --git a/src/termlib.c b/src/termlib.c
index 9488a32..59eab7d 100644
--- a/src/termlib.c
+++ b/src/termlib.c
@@ -140,7 +140,7 @@ tgetent(
 }
 
     static int
-getent(char *tbuf, *term, FILE *termcap, int buflen)
+getent(char *tbuf, char *term, FILE *termcap, int buflen)
 {
     char    *tptr;
     int	    tlen = strlen(term);

Raspunde prin e-mail lui