changeset 29088:ba435f6bc1ad v8.2.5065

patch 8.2.5065: wrong return type for main() in tee.c Commit: https://github.com/vim/vim/commit/739f7998ab6c2383abbd8bbc7fad35e6bc3e7c43 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 6 22:16:09 2022 +0100 patch 8.2.5065: wrong return type for main() in tee.c Problem: Wrong return type for main() in tee.c. Solution: Use "int" instead of "void". Remove unused variable.
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Jun 2022 23:30:04 +0200
parents f3ec3c57e070
children 71d4dc25eb4b
files src/tee/tee.c src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/tee/tee.c
+++ b/src/tee/tee.c
@@ -78,12 +78,11 @@ myfread(char *buf, int elsize /*ignored*
 }
 
 
-void
+int
 main(int argc, char *argv[])
 {
 	int	append = 0;
 	int	numfiles;
-	int	opt;
 	int	maxfiles;
 	FILE	**filepointers;
 	int	i;
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    5065,
+/**/
     5064,
 /**/
     5063,