un-__P functions declared in parser.h. host programs include parser.h,
and so it shouldn't use __P. (this should probably be done better, by not declaring the parser functions in headers used by host programs, but this works well enough.)
This commit is contained in:
parent
96df053cba
commit
2a1ee59131
@ -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:
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user