diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-11-20 17:09:56 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-11-20 17:09:56 +0000 |
commit | 2d3ff7614dff2c02b923d828ca4d6f0e6141bd1a (patch) | |
tree | 7f08c0b3768b030051e347112629cadf41b8b630 | |
parent | 0207ac41b2a68ff8abee36cf33e91697288a0533 (diff) |
KNF. OK kjell, millert
-rw-r--r-- | usr.bin/xlint/lint2/chk.c | 96 | ||||
-rw-r--r-- | usr.bin/xlint/lint2/emit2.c | 17 | ||||
-rw-r--r-- | usr.bin/xlint/lint2/hash.c | 16 | ||||
-rw-r--r-- | usr.bin/xlint/lint2/main2.c | 10 | ||||
-rw-r--r-- | usr.bin/xlint/lint2/mem2.c | 9 | ||||
-rw-r--r-- | usr.bin/xlint/lint2/msg.c | 10 | ||||
-rw-r--r-- | usr.bin/xlint/lint2/read.c | 61 | ||||
-rw-r--r-- | usr.bin/xlint/xlint/xlint.c | 57 |
8 files changed, 84 insertions, 192 deletions
diff --git a/usr.bin/xlint/lint2/chk.c b/usr.bin/xlint/lint2/chk.c index 792e9fa9f19..6b97dc5fa11 100644 --- a/usr.bin/xlint/lint2/chk.c +++ b/usr.bin/xlint/lint2/chk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chk.c,v 1.8 2002/02/17 19:42:35 millert Exp $ */ +/* $OpenBSD: chk.c,v 1.9 2005/11/20 17:09:55 cloder Exp $ */ /* $NetBSD: chk.c,v 1.2 1995/07/03 21:24:42 cgd Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: chk.c,v 1.8 2002/02/17 19:42:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: chk.c,v 1.9 2005/11/20 17:09:55 cloder Exp $"; #endif #include <stdlib.h> @@ -70,7 +70,7 @@ static int mnoarg(type_t *, int *); void -inittyp() +inittyp(void) { int i; static struct { @@ -161,7 +161,7 @@ inittyp() * If there is a symbol named "main", mark it as used. */ void -mainused() +mainused(void) { hte_t *hte; @@ -173,8 +173,7 @@ mainused() * Performs all tests for a single name */ void -chkname(hte) - hte_t *hte; +chkname(hte_t *hte) { sym_t *sym, *def, *pdecl, *decl; @@ -219,8 +218,7 @@ chkname(hte) * Print a warning if the name has been used, but not defined. */ static void -chkund(hte) - hte_t *hte; +chkund(hte_t *hte) { fcall_t *fcall; usym_t *usym; @@ -241,8 +239,7 @@ chkund(hte) * Print a warning if the name has been defined, but never used. */ static void -chkdnu(hte) - hte_t *hte; +chkdnu(hte_t *hte) { sym_t *sym; @@ -263,8 +260,7 @@ chkdnu(hte) * or defined. */ static void -chkdnud(hte) - hte_t *hte; +chkdnud(hte_t *hte) { sym_t *sym; @@ -284,8 +280,7 @@ chkdnud(hte) * this name. */ static void -chkmd(hte) - hte_t *hte; +chkmd(hte_t *hte) { sym_t *sym, *def1; char *pos1; @@ -322,9 +317,7 @@ chkmd(hte) * call as it's done for function arguments. */ static void -chkvtui(hte, def, decl) - hte_t *hte; - sym_t *def, *decl; +chkvtui(hte_t *hte, sym_t *def, sym_t *decl) { fcall_t *call; char *pos1; @@ -385,9 +378,7 @@ chkvtui(hte, def, decl) * types of return values are tested. */ static void -chkvtdi(hte, def, decl) - hte_t *hte; - sym_t *def, *decl; +chkvtdi(hte_t *hte, sym_t *def, sym_t *decl) { sym_t *sym; type_t *tp1, *tp2; @@ -426,9 +417,7 @@ chkvtdi(hte, def, decl) * of the same function. */ static void -chkfaui(hte, def, decl) - hte_t *hte; - sym_t *def, *decl; +chkfaui(hte_t *hte, sym_t *def, sym_t *decl) { type_t *tp1, *tp2, **ap1, **ap2; pos_t *pos1p; @@ -536,13 +525,8 @@ chkfaui(hte, def, decl) * */ static void -chkau(hte, n, def, decl, pos1p, call1, call, arg1, arg2) - hte_t *hte; - int n; - sym_t *def, *decl; - pos_t *pos1p; - fcall_t *call1, *call; - type_t *arg1, *arg2; +chkau(hte_t *hte, int n, sym_t *def, sym_t *decl, pos_t *pos1p, + fcall_t *call1, fcall_t *call, type_t *arg1, type_t *arg2) { /* LINTED (automatic hides external declaration: warn) */ int promote, asgn, warn; @@ -689,12 +673,7 @@ chkau(hte, n, def, decl, pos1p, call1, call, arg1, arg2) * string fmt. */ static void -printflike(hte, call, n, fmt, ap) - hte_t *hte; - fcall_t *call; - int n; - const char *fmt; - type_t **ap; +printflike(hte_t *hte, fcall_t *call, int n, const char *fmt, type_t **ap) { const char *fp; int fc; @@ -919,12 +898,7 @@ printflike(hte, call, n, fmt, ap) * string fmt. */ static void -scanflike(hte, call, n, fmt, ap) - hte_t *hte; - fcall_t *call; - int n; - const char *fmt; - type_t **ap; +scanflike(hte_t *hte, fcall_t *call, int n, const char *fmt, type_t **ap) { const char *fp; int fc; @@ -1115,37 +1089,28 @@ scanflike(hte, call, n, fmt, ap) } static void -badfmt(hte, call) - hte_t *hte; - fcall_t *call; +badfmt(hte_t *hte, fcall_t *call) { /* %s: malformed format string\t%s */ msg(13, hte->h_name, mkpos(&call->f_pos)); } static void -inconarg(hte, call, n) - hte_t *hte; - fcall_t *call; - int n; +inconarg(hte_t *hte, fcall_t *call, int n) { /* %s, arg %d inconsistent with format\t%s(%d) */ msg(14, hte->h_name, n, mkpos(&call->f_pos)); } static void -tofewarg(hte, call) - hte_t *hte; - fcall_t *call; +tofewarg(hte_t *hte, fcall_t *call) { /* %s: too few args for format \t%s */ msg(15, hte->h_name, mkpos(&call->f_pos)); } static void -tomanyarg(hte, call) - hte_t *hte; - fcall_t *call; +tomanyarg(hte_t *hte, fcall_t *call) { /* %s: too many args for format \t%s */ msg(16, hte->h_name, mkpos(&call->f_pos)); @@ -1157,9 +1122,7 @@ tomanyarg(hte, call) * or return values which are always or sometimes ignored. */ static void -chkrvu(hte, def) - hte_t *hte; - sym_t *def; +chkrvu(hte_t *hte, sym_t *def) { fcall_t *call; int used, ignored; @@ -1207,9 +1170,7 @@ chkrvu(hte, def) * Print warnings for inconsistent argument declarations. */ static void -chkadecl(hte, def, decl) - hte_t *hte; - sym_t *def, *decl; +chkadecl(hte_t *hte, sym_t *def, sym_t *decl) { /* LINTED (automatic hides external declaration: warn) */ int osdef, eq, warn, n; @@ -1289,9 +1250,7 @@ chkadecl(hte, def, decl) * an incompatible prototype declaration */ static int -eqtype(tp1, tp2, ignqual, promot, asgn, warn) - type_t *tp1, *tp2; - int ignqual, promot, asgn, *warn; +eqtype(type_t *tp1, type_t *tp2, int ignqual, int promot, int asgn, int *warn) { tspec_t t, to; int indir; @@ -1403,9 +1362,7 @@ eqtype(tp1, tp2, ignqual, promot, asgn, warn) * Compares arguments of two prototypes */ static int -eqargs(tp1, tp2, warn) - type_t *tp1, *tp2; - int *warn; +eqargs(type_t *tp1, type_t *tp2, int *warn) { type_t **a1, **a2; @@ -1439,9 +1396,7 @@ eqargs(tp1, tp2, warn) * is applied on it */ static int -mnoarg(tp, warn) - type_t *tp; - int *warn; +mnoarg(type_t *tp, int *warn) { type_t **arg; tspec_t t; @@ -1458,4 +1413,3 @@ mnoarg(tp, warn) } return (1); } - diff --git a/usr.bin/xlint/lint2/emit2.c b/usr.bin/xlint/lint2/emit2.c index 290fc0868a8..de032bdb16b 100644 --- a/usr.bin/xlint/lint2/emit2.c +++ b/usr.bin/xlint/lint2/emit2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emit2.c,v 1.4 2003/11/08 19:17:29 jmc Exp $ */ +/* $OpenBSD: emit2.c,v 1.5 2005/11/20 17:09:55 cloder Exp $ */ /* $NetBSD: emit2.c,v 1.2 1995/07/03 21:24:44 cgd Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: emit2.c,v 1.4 2003/11/08 19:17:29 jmc Exp $"; +static char rcsid[] = "$OpenBSD: emit2.c,v 1.5 2005/11/20 17:09:55 cloder Exp $"; #endif #include <err.h> @@ -48,8 +48,7 @@ static void dumpname(hte_t *); * Write type into the output buffer. */ static void -outtype(tp) - type_t *tp; +outtype(type_t *tp) { int t, s, na; tspec_t ts; @@ -129,9 +128,7 @@ outtype(tp) * Write a definition. */ static void -outdef(hte, sym) - hte_t *hte; - sym_t *sym; +outdef(hte_t *hte, sym_t *sym) { /* reset output buffer */ outclr(); @@ -181,8 +178,7 @@ outdef(hte, sym) * Write the first definition of a name into the lint library. */ static void -dumpname(hte) - hte_t *hte; +dumpname(hte_t *hte) { sym_t *sym, *def; @@ -214,8 +210,7 @@ dumpname(hte) * Write a new lint library. */ void -outlib(name) - const char *name; +outlib(const char *name) { /* Open of output file and initialisation of the output buffer */ outopen(name); diff --git a/usr.bin/xlint/lint2/hash.c b/usr.bin/xlint/lint2/hash.c index 35c7c540398..1e86c03977e 100644 --- a/usr.bin/xlint/lint2/hash.c +++ b/usr.bin/xlint/lint2/hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hash.c,v 1.4 2002/02/16 21:27:59 millert Exp $ */ +/* $OpenBSD: hash.c,v 1.5 2005/11/20 17:09:55 cloder Exp $ */ /* $NetBSD: hash.c,v 1.2 1995/07/03 21:24:47 cgd Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: hash.c,v 1.4 2002/02/16 21:27:59 millert Exp $"; +static char rcsid[] = "$OpenBSD: hash.c,v 1.5 2005/11/20 17:09:55 cloder Exp $"; #endif #include <stddef.h> @@ -51,7 +51,7 @@ static int hash(const char *); * Initialize hash table. */ void -inithash() +inithash(void) { htab = xcalloc(HSHSIZ2, sizeof (hte_t *)); } @@ -60,8 +60,7 @@ inithash() * Compute hash value from a string. */ static int -hash(s) - const char *s; +hash(const char *s) { u_int v; const u_char *us; @@ -79,9 +78,7 @@ hash(s) * given name exists and mknew is set, create a new one. */ hte_t * -hsearch(s, mknew) - const char *s; - int mknew; +hsearch(const char *s, int mknew) { int h; hte_t *hte; @@ -112,8 +109,7 @@ hsearch(s, mknew) * Call function f for each name in the hash table. */ void -forall(f) - void (*f)(hte_t *); +forall(void (*f)(hte_t *)) { int i; hte_t *hte; diff --git a/usr.bin/xlint/lint2/main2.c b/usr.bin/xlint/lint2/main2.c index db6d099577b..6ddd0ce50bf 100644 --- a/usr.bin/xlint/lint2/main2.c +++ b/usr.bin/xlint/lint2/main2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main2.c,v 1.5 2003/04/14 03:03:52 deraadt Exp $ */ +/* $OpenBSD: main2.c,v 1.6 2005/11/20 17:09:55 cloder Exp $ */ /* $NetBSD: main2.c,v 1.2 1995/07/03 21:24:53 cgd Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: main2.c,v 1.5 2003/04/14 03:03:52 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main2.c,v 1.6 2005/11/20 17:09:55 cloder Exp $"; #endif #include <stdio.h> @@ -88,9 +88,7 @@ static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int c, i; size_t len; @@ -182,7 +180,7 @@ main(argc, argv) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: lint2 -hpstxuHF -Clib -l lib ... src1 ...\n"); diff --git a/usr.bin/xlint/lint2/mem2.c b/usr.bin/xlint/lint2/mem2.c index 8b87e6cd282..687729b6c8f 100644 --- a/usr.bin/xlint/lint2/mem2.c +++ b/usr.bin/xlint/lint2/mem2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem2.c,v 1.3 2001/05/11 16:06:57 art Exp $ */ +/* $OpenBSD: mem2.c,v 1.4 2005/11/20 17:09:55 cloder Exp $ */ /* $NetBSD: mem2.c,v 1.3 1995/10/02 17:27:11 jpo Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: mem2.c,v 1.3 2001/05/11 16:06:57 art Exp $"; +static char rcsid[] = "$OpenBSD: mem2.c,v 1.4 2005/11/20 17:09:55 cloder Exp $"; #endif #include <sys/param.h> @@ -55,7 +55,7 @@ static size_t nxtfree; static void *mbuf; void -initmem() +initmem(void) { int pgsz; @@ -71,8 +71,7 @@ initmem() * need never to be freed. */ void * -xalloc(sz) - size_t sz; +xalloc(size_t sz) { void *ptr; int prot, flags; diff --git a/usr.bin/xlint/lint2/msg.c b/usr.bin/xlint/lint2/msg.c index 9f33f1aaf6d..8249f95bd15 100644 --- a/usr.bin/xlint/lint2/msg.c +++ b/usr.bin/xlint/lint2/msg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msg.c,v 1.5 2003/04/14 03:03:52 deraadt Exp $ */ +/* $OpenBSD: msg.c,v 1.6 2005/11/20 17:09:55 cloder Exp $ */ /* $NetBSD: msg.c,v 1.2 1995/07/03 21:24:56 cgd Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: msg.c,v 1.5 2003/04/14 03:03:52 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: msg.c,v 1.6 2005/11/20 17:09:55 cloder Exp $"; #endif #include <string.h> @@ -84,8 +84,7 @@ msg(int n, ...) * Return a pointer to the last component of a path. */ static const char * -basename(path) - const char *path; +basename(const char *path) { const char *cp, *cp1, *cp2; @@ -106,8 +105,7 @@ basename(path) * Create a string which describes a position in a source file. */ const char * -mkpos(posp) - pos_t *posp; +mkpos(pos_t *posp) { size_t len; const char *fn; diff --git a/usr.bin/xlint/lint2/read.c b/usr.bin/xlint/lint2/read.c index 5df2e4cffe4..bc6d78dd6b2 100644 --- a/usr.bin/xlint/lint2/read.c +++ b/usr.bin/xlint/lint2/read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.6 2003/11/08 19:17:29 jmc Exp $ */ +/* $OpenBSD: read.c,v 1.7 2005/11/20 17:09:55 cloder Exp $ */ /* $NetBSD: read.c,v 1.2 1995/07/03 21:24:59 cgd Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: read.c,v 1.6 2003/11/08 19:17:29 jmc Exp $"; +static char rcsid[] = "$OpenBSD: read.c,v 1.7 2005/11/20 17:09:55 cloder Exp $"; #endif #include <stdio.h> @@ -99,8 +99,7 @@ static const char *inpname(const char *, const char **); static int getfnidx(const char *); void -readfile(name) - const char *name; +readfile(const char *name) { FILE *inp; size_t len; @@ -202,7 +201,7 @@ readfile(name) static void -inperr() +inperr(void) { errx(1, "input file error: %s", fnames[srcfile]); } @@ -212,8 +211,7 @@ inperr() * currently read. */ static void -setsrc(cp) - const char *cp; +setsrc(const char *cp) { csrcfile = getfnidx(cp); } @@ -225,9 +223,7 @@ setsrc(cp) * as used in the input file to the index used in lint2. */ static void -setfnid(fid, cp) - int fid; - const char *cp; +setfnid(int fid, const char *cp) { if (fid == -1) inperr(); @@ -250,9 +246,7 @@ setfnid(fid, cp) * Process a function call record (c-record). */ static void -funccall(posp, cp) - pos_t *posp; - const char *cp; +funccall(pos_t *posp, const char *cp) { arginf_t *ai, **lai; char c, *eptr; @@ -328,9 +322,7 @@ funccall(posp, cp) * Process a declaration or definition (d-record). */ static void -decldef(posp, cp) - pos_t *posp; - const char *cp; +decldef(pos_t *posp, const char *cp) { sym_t *symp, sym; char c, *ep; @@ -460,9 +452,7 @@ decldef(posp, cp) * Read an u-record (emited by lint1 if a symbol was used). */ static void -usedsym(posp, cp) - pos_t *posp; - const char *cp; +usedsym(pos_t *posp, const char *cp) { usym_t *usym; hte_t *hte; @@ -485,8 +475,7 @@ usedsym(posp, cp) * Read a type and return the index of this type. */ static u_short -inptype(cp, epp) - const char *cp, **epp; +inptype(const char *cp, const char **epp) { char c, s, *eptr; const char *ep; @@ -624,8 +613,7 @@ inptype(cp, epp) * Get the length of a type string. */ static int -gettlen(cp, epp) - const char *cp, **epp; +gettlen(const char *cp, const char **epp) { const char *cp1; char c, s, *eptr; @@ -793,10 +781,7 @@ gettlen(cp, epp) * Search a type by it's type string. */ static u_short -findtype(cp, len, h) - const char *cp; - size_t len; - int h; +findtype(const char *cp, size_t len, int h) { thtab_t *thte; @@ -815,11 +800,7 @@ findtype(cp, len, h) * if we read the same type string from the input file. */ static u_short -storetyp(tp, cp, len, h) - type_t *tp; - const char *cp; - size_t len; - int h; +storetyp(type_t *tp, const char *cp, size_t len, int h) { /* 0 ist reserved */ static u_int tidx = 1; @@ -855,9 +836,7 @@ storetyp(tp, cp, len, h) * Hash function for types */ static int -thash(s, len) - const char *s; - size_t len; +thash(const char *s, size_t len) { u_int v; @@ -873,8 +852,7 @@ thash(s, len) * Read a string enclosed by "". This string may contain quoted chars. */ static char * -inpqstrg(src, epp) - const char *src, **epp; +inpqstrg(const char *src, const char **epp) { char *strg, *dst; size_t slen; @@ -957,8 +935,7 @@ inpqstrg(src, epp) * Read the name of a symbol in static memory. */ static const char * -inpname(cp, epp) - const char *cp, **epp; +inpname(const char *cp, const char **epp) { static char *buf; static size_t blen = 0; @@ -988,8 +965,7 @@ inpname(cp, epp) * a new entry and return the index of the newly created entry. */ static int -getfnidx(fn) - const char *fn; +getfnidx(const char *fn) { int i; @@ -1015,8 +991,7 @@ getfnidx(fn) * Separate symbols with static and external linkage. */ void -mkstatic(hte) - hte_t *hte; +mkstatic(hte_t *hte) { sym_t *sym1, **symp, *sym; fcall_t **callp, *call; diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c index e71dad5a393..209ab91734b 100644 --- a/usr.bin/xlint/xlint/xlint.c +++ b/usr.bin/xlint/xlint/xlint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xlint.c,v 1.16 2004/05/11 02:08:07 millert Exp $ */ +/* $OpenBSD: xlint.c,v 1.17 2005/11/20 17:09:55 cloder Exp $ */ /* $NetBSD: xlint.c,v 1.3 1995/10/23 14:29:30 jpo Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: xlint.c,v 1.16 2004/05/11 02:08:07 millert Exp $"; +static char rcsid[] = "$OpenBSD: xlint.c,v 1.17 2005/11/20 17:09:55 cloder Exp $"; #endif #include <sys/param.h> @@ -133,8 +133,7 @@ static void cat(char *const *, const char *); * Take care that we get no surprises in case of asynchronous signals. */ static void -appstrg(lstp, s) - char ***lstp, *s; +appstrg(char ***lstp, char *s) { char **lst, **olst; int i; @@ -149,17 +148,13 @@ appstrg(lstp, s) } static void -appcstrg(lstp, s) - char ***lstp; - const char *s; +appcstrg(char ***lstp, const char *s) { appstrg(lstp, xstrdup(s)); } static void -applst(destp, src) - char ***destp; - char *const *src; +applst(char ***destp, char *const *src) { int i, k; char **dest, **odest; @@ -177,8 +172,7 @@ applst(destp, src) } static void -freelst(lstp) - char ***lstp; +freelst(char ***lstp) { char *s; int i; @@ -192,8 +186,7 @@ freelst(lstp) } static char * -concat2(s1, s2) - const char *s1, *s2; +concat2(const char *s1, const char *s2) { char *s; size_t len = strlen(s1) + strlen(s2) + 1; @@ -206,8 +199,7 @@ concat2(s1, s2) } static char * -concat3(s1, s2, s3) - const char *s1, *s2, *s3; +concat3(const char *s1, const char *s2, const char *s3) { char *s; size_t len = strlen(s1) + strlen(s2) + strlen(s3) + 1; @@ -224,8 +216,7 @@ concat3(s1, s2, s3) * Clean up after a signal. */ static void -terminate(signo) - int signo; +terminate(int signo) { int i; @@ -251,9 +242,7 @@ terminate(signo) * Returns strg if the string does not contain delim. */ static const char * -basename(strg, delim) - const char *strg; - int delim; +basename(const char *strg, int delim) { const char *cp, *cp1, *cp2; @@ -268,9 +257,7 @@ basename(strg, delim) } static void -appdef(lstp, def) - char ***lstp; - const char *def; +appdef(char ***lstp, const char *def) { appstrg(lstp, concat2("-D__", def)); appstrg(lstp, concat3("-D__", def, "__")); @@ -288,9 +275,7 @@ usage() } int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int c; char flgbuf[3], *tmp, *s; @@ -524,9 +509,7 @@ main(argc, argv) * and pass it through lint1 if it is a C source. */ static void -fname(name, last) - const char *name; - int last; +fname(const char *name, int last) { const char *bn, *suff; char **args, *ofn, *path; @@ -619,9 +602,7 @@ fname(name, last) } static int -runchild(path, args, crfn) - const char *path, *crfn; - char *const *args; +runchild(const char *path, char *const *args, const char *crfn) { int status, signo, i; pid_t rv; @@ -669,8 +650,7 @@ runchild(path, args, crfn) } static void -findlibs(liblst) - char *const *liblst; +findlibs(char *const *liblst) { int i, k; const char *lib, *path; @@ -704,8 +684,7 @@ findlibs(liblst) } static int -rdok(path) - const char *path; +rdok(const char *path) { struct stat sbuf; @@ -742,9 +721,7 @@ lint2() } static void -cat(srcs, dest) - char *const *srcs; - const char *dest; +cat(char *const *srcs, const char *dest) { int ifd, ofd, i; char *src, *buf; |