patch 7.4.1208
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
diff --git a/src/if_perlsfio.c b/src/if_perlsfio.c
index 0ae1b95..d29e6d7 100644
--- a/src/if_perlsfio.c
+++ b/src/if_perlsfio.c
@@ -25,11 +25,11 @@
#define NIL(type) ((type)0)
static int
-sfvimwrite(f, buf, n, disc)
- Sfio_t *f; /* stream involved */
- char *buf; /* buffer to read from */
- int n; /* number of bytes to write */
- Sfdisc_t *disc; /* discipline */
+sfvimwrite(
+ Sfio_t *f, /* stream involved */
+ char *buf, /* buffer to read from */
+ int n, /* number of bytes to write */
+ Sfdisc_t *disc) /* discipline */
{
char_u *str;
@@ -47,7 +47,7 @@
* Create Vim discipline
*/
Sfdisc_t *
-sfdcnewvim()
+sfdcnewvim(void)
{
Sfdisc_t *disc;