summaryrefslogtreecommitdiff
path: root/src/xxd
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-04-02 14:44:55 +0200
committerBram Moolenaar <Bram@vim.org>2011-04-02 14:44:55 +0200
commit10d77eb6aca0dd4d6fbf43e1fc3f3e2204f75177 (patch)
treebecf2530ea9a0d66600a8fdd2a543acef6b62bf1 /src/xxd
parente0659a680c623f2107017313195a99fa786371ab (diff)
downloadvim-git-10d77eb6aca0dd4d6fbf43e1fc3f3e2204f75177.tar.gz
updated for version 7.3.153v7.3.153
Problem: Compiler warning for ambiguous else, missing prototype. Solution: Add braces. (Dominique Pelle) Add prototype for die().
Diffstat (limited to 'src/xxd')
-rw-r--r--src/xxd/xxd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c
index b39f4d436..4d843dd62 100644
--- a/src/xxd/xxd.c
+++ b/src/xxd/xxd.c
@@ -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;
}
+ }
}
}