diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 789b60cdf603..2abab11268d2 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -1,4 +1,4 @@ -/* $NetBSD: parser.c,v 1.44 2000/01/27 23:39:40 christos Exp $ */ +/* $NetBSD: parser.c,v 1.45 2000/07/27 04:09:27 cgd Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95"; #else -__RCSID("$NetBSD: parser.c,v 1.44 2000/01/27 23:39:40 christos Exp $"); +__RCSID("$NetBSD: parser.c,v 1.45 2000/07/27 04:09:27 cgd Exp $"); #endif #endif /* not lint */ @@ -125,8 +125,7 @@ STATIC void setprompt __P((int)); */ union node * -parsecmd(interact) - int interact; +parsecmd(int interact) { int t; @@ -604,10 +603,7 @@ makename() { return n; } -void fixredir(n, text, err) - union node *n; - const char *text; - int err; +void fixredir(union node *n, const char *text, int err) { TRACE(("Fix redir %s %d\n", text, err)); if (!err) @@ -1490,8 +1486,7 @@ noexpand(text) */ int -goodname(name) - char *name; +goodname(char *name) { char *p; @@ -1557,8 +1552,7 @@ setprompt(which) * should be added here. */ const char * -getprompt(unused) - void *unused; +getprompt(void *unused) { switch (whichprompt) { case 0: diff --git a/bin/sh/parser.h b/bin/sh/parser.h index 45a39bea728d..9d3d87becc96 100644 --- a/bin/sh/parser.h +++ b/bin/sh/parser.h @@ -1,4 +1,4 @@ -/* $NetBSD: parser.h,v 1.13 1999/07/09 03:05:50 christos Exp $ */ +/* $NetBSD: parser.h,v 1.14 2000/07/27 04:09:28 cgd Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -77,7 +77,7 @@ extern int tokpushback; extern int whichprompt; /* 1 == PS1, 2 == PS2 */ -union node *parsecmd __P((int)); -void fixredir __P((union node *, const char *, int)); -int goodname __P((char *)); -const char *getprompt __P((void *)); +union node *parsecmd(int); +void fixredir(union node *, const char *, int); +int goodname(char *); +const char *getprompt(void *);