summaryrefslogtreecommitdiff
path: root/src/xxd
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-30 21:29:58 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-30 21:29:58 +0100
commitb638a7be952544ceb03052c25b84224577a6494b (patch)
tree4a37ca954a03fba25f9e7a81b7f54cf23c1013cb /src/xxd
parent764b23c8fd3369cb05ae9122abf3ca16fec539d7 (diff)
downloadvim-git-b638a7be952544ceb03052c25b84224577a6494b.tar.gz
patch 7.4.1215v7.4.1215
Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
Diffstat (limited to 'src/xxd')
-rw-r--r--src/xxd/xxd.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c
index c18ad3160..8cd760b15 100644
--- a/src/xxd/xxd.c
+++ b/src/xxd/xxd.c
@@ -234,7 +234,7 @@ char hexxa[] = "0123456789abcdef0123456789ABCDEF", *hexx = hexxa;
static char *pname;
static void
-exit_with_usage()
+exit_with_usage(void)
{
fprintf(stderr, "Usage:\n %s [options] [infile [outfile]]\n", pname);
fprintf(stderr, " or\n %s -r [-s [-]offset] [-c cols] [-ps] [infile [outfile]]\n", pname);
@@ -264,8 +264,7 @@ exit_with_usage()
}
static void
-die(ret)
- int ret;
+die(int ret)
{
fprintf(stderr, "%s: ", pname);
perror(NULL);
@@ -280,10 +279,13 @@ die(ret)
* The name is historic and came from 'undo type opt h'.
*/
static int
-huntype(fpi, fpo, fperr, cols, hextype, base_off)
- FILE *fpi, *fpo, *fperr;
- int cols, hextype;
- long base_off;
+huntype(
+ FILE *fpi,
+ FILE *fpo,
+ FILE *fperr,
+ int cols,
+ int hextype,
+ long base_off)
{
int c, ign_garb = 1, n1 = -1, n2 = 0, n3, p = cols;
long have_off = 0, want_off = 0;
@@ -409,10 +411,7 @@ huntype(fpi, fpo, fperr, cols, hextype, base_off)
* If nz is always positive, lines are never suppressed.
*/
static void
-xxdline(fp, l, nz)
- FILE *fp;
- char *l;
- int nz;
+xxdline(FILE *fp, char *l, int nz)
{
static char z[LLEN+1];
static int zero_seen = 0;
@@ -472,9 +471,7 @@ static unsigned char etoa64[] =
};
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
FILE *fp, *fpo;
int c, e, p = 0, relseek = 1, negseek = 0, revert = 0;