0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.3.153

Problem:    Compiler warning for ambiguous else, missing prototype.
Solution:   Add braces. (Dominique Pelle)  Add prototype for die().
This commit is contained in:
Bram Moolenaar
2011-04-02 14:44:55 +02:00
parent e0659a680c
commit 10d77eb6ac
2 changed files with 5 additions and 0 deletions

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
153,
/**/ /**/
152, 152,
/**/ /**/

View File

@@ -210,6 +210,7 @@ char osver[] = "";
/* Let's collect some prototypes */ /* Let's collect some prototypes */
/* CodeWarrior is really picky about missing prototypes */ /* CodeWarrior is really picky about missing prototypes */
static void exit_with_usage __P((void)); static void exit_with_usage __P((void));
static void die __P((int));
static int huntype __P((FILE *, FILE *, FILE *, int, int, long)); static int huntype __P((FILE *, FILE *, FILE *, int, int, long));
static void xxdline __P((FILE *, char *, int)); static void xxdline __P((FILE *, char *, int));
@@ -689,6 +690,7 @@ main(argc, argv)
while (s--) while (s--)
if (getc(fp) == EOF) if (getc(fp) == EOF)
{
if (ferror(fp)) if (ferror(fp))
{ {
die(2); die(2);
@@ -698,6 +700,7 @@ main(argc, argv)
fprintf(stderr, "%s: sorry cannot seek.\n", pname); fprintf(stderr, "%s: sorry cannot seek.\n", pname);
return 4; return 4;
} }
}
} }
} }