]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.153 v7.3.153
authorBram Moolenaar <Bram@vim.org>
Sat, 2 Apr 2011 12:44:55 +0000 (14:44 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 2 Apr 2011 12:44:55 +0000 (14:44 +0200)
Problem:    Compiler warning for ambiguous else, missing prototype.
Solution:   Add braces. (Dominique Pelle)  Add prototype for die().

src/version.c
src/xxd/xxd.c

index 7d6a5828f127366e76624daf80c3013dd6a20553..507c41d2b49d9d92f655592786bdd2a710d27351 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    153,
 /**/
     152,
 /**/
index b39f4d43646677f3cc0ac0ca5030a948473620a0..4d843dd621ecf093c5ce33c532b46b7d0b5d63fb 100644 (file)
@@ -210,6 +210,7 @@ char osver[] = "";
 /* Let's collect some prototypes */
 /* CodeWarrior is really picky about missing prototypes */
 static void exit_with_usage __P((void));
+static void die __P((int));
 static int huntype __P((FILE *, FILE *, FILE *, int, int, long));
 static void xxdline __P((FILE *, char *, int));
 
@@ -689,6 +690,7 @@ main(argc, argv)
 
          while (s--)
            if (getc(fp) == EOF)
+           {
              if (ferror(fp))
                {
                  die(2);
@@ -698,6 +700,7 @@ main(argc, argv)
                  fprintf(stderr, "%s: sorry cannot seek.\n", pname);
                  return 4;
                }
+           }
        }
     }