]> granicus.if.org Git - vim/commitdiff
patch 8.2.5065: wrong return type for main() in tee.c v8.2.5065
authorBram Moolenaar <Bram@vim.org>
Mon, 6 Jun 2022 21:16:09 +0000 (22:16 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 6 Jun 2022 21:16:09 +0000 (22:16 +0100)
Problem:    Wrong return type for main() in tee.c.
Solution:   Use "int" instead of "void".  Remove unused variable.

src/tee/tee.c
src/version.c

index ba0e4abd7f981cb11a3e8e68fbceda95025b9965..bed8bad100adbc25f667a8c78192b615c2a7fd49 100644 (file)
@@ -78,12 +78,11 @@ myfread(char *buf, int elsize /*ignored*/, int max, FILE *fp)
 }
 
 
-void
+int
 main(int argc, char *argv[])
 {
        int     append = 0;
        int     numfiles;
-       int     opt;
        int     maxfiles;
        FILE    **filepointers;
        int     i;
index 6bdc2541a4e611d3438cc2d2351d5275cd51240d..a131b35a37806d22b2401ab64e48bca559c7790e 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5065,
 /**/
     5064,
 /**/