diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-10-09 03:42:10 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-10-09 03:42:10 +0000 |
commit | d466dc0ec0161f8be4cf293b8d7fd03e016b837f (patch) | |
tree | 01c9d3cf78c3c46802e6e4ca2a65cce497a23515 /usr.bin/make/for.c | |
parent | 6b6ba96b60d9de6b157e3a804963854cde6eec5b (diff) | |
download | FreeBSD-src-d466dc0ec0161f8be4cf293b8d7fd03e016b837f.zip FreeBSD-src-d466dc0ec0161f8be4cf293b8d7fd03e016b837f.tar.gz |
Convert make(1) to use ANSI style function declarations. Variable
documentation already adequatedly existed in the description in most
cases. Where it did not, it was added. If no documentation existed
beforehand, then none was added. Some unused dummies for use in the
traversal functions were marked as __unused during the conversion.
Occasionally, local style fixes were applied to lines already being
modified or influenced.
Now make(1) should always build with WARNS=3.
Diffstat (limited to 'usr.bin/make/for.c')
-rw-r--r-- | usr.bin/make/for.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/make/for.c b/usr.bin/make/for.c index c152008..87890af 100644 --- a/usr.bin/make/for.c +++ b/usr.bin/make/for.c @@ -106,8 +106,7 @@ static int ForExec(void *, void *); *----------------------------------------------------------------------- */ int -For_Eval (line) - char *line; /* Line to parse */ +For_Eval (char *line) { char *ptr = line, *sub, *wrd; int level; /* Level at which to report errors. */ @@ -247,9 +246,7 @@ For_Eval (line) *----------------------------------------------------------------------- */ static int -ForExec(namep, argp) - void * namep; - void * argp; +ForExec(void *namep, void *argp) { char *name = (char *) namep; For *arg = (For *) argp; @@ -278,7 +275,7 @@ ForExec(namep, argp) *----------------------------------------------------------------------- */ void -For_Run() +For_Run(void) { For arg; |