diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-04-07 13:11:37 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-04-07 13:11:37 +0000 |
commit | d62260efbb210817cdf2745812dff843031c5840 (patch) | |
tree | ebc4ba9c0621c6491f9d8efd979ae4c81228fa93 /usr.bin/make/compat.c | |
parent | b6a90d9cabfe2b5212651fce2cc785fffd80893f (diff) |
ISO function declarations, trim a few comments, rename a few variables to
more explicit/more consistent names.
okay otto@
Diffstat (limited to 'usr.bin/make/compat.c')
-rw-r--r-- | usr.bin/make/compat.c | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index 9a6613c6848..02ec6a20990 100644 --- a/usr.bin/make/compat.c +++ b/usr.bin/make/compat.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: compat.c,v 1.49 2003/06/03 02:56:11 millert Exp $ */ +/* $OpenBSD: compat.c,v 1.50 2004/04/07 13:11:35 espie Exp $ */ /* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */ /* @@ -82,8 +82,7 @@ static int shellneed(char **); static volatile sig_atomic_t interrupted; static void -CompatInterrupt(signo) - int signo; +CompatInterrupt(int signo) { if (interrupted != SIGINT) interrupted = signo; @@ -104,8 +103,7 @@ CompatInterrupt(signo) *----------------------------------------------------------------------- */ static int -shellneed(av) - char **av; +shellneed(char **av) { char *runsh[] = { "alias", "cd", "eval", "exec", "exit", "read", "set", "ulimit", @@ -156,9 +154,8 @@ shellneed(av) *----------------------------------------------------------------------- */ static int -CompatRunCommand(cmdp, gnp) - void * cmdp; /* Command to execute */ - void * gnp; /* Node from which the command came */ +CompatRunCommand(void *cmdp, /* Command to execute */ + void *gnp) /* Node from which the command came */ { char *cmdStart; /* Start of expanded command */ char *cp, *bp = NULL; @@ -375,9 +372,8 @@ CompatRunCommand(cmdp, gnp) *----------------------------------------------------------------------- */ static void -CompatMake(gnp, pgnp) - void * gnp; /* The node to make */ - void * pgnp; /* Parent to abort if necessary */ +CompatMake(void *gnp, /* The node to make */ + void *pgnp) /* Parent to abort if necessary */ { GNode *gn = (GNode *)gnp; GNode *pgn = (GNode *)pgnp; @@ -557,12 +553,11 @@ CompatMake(gnp, pgnp) } void -Compat_Run(targs) - Lst targs; /* List of target nodes to re-create */ +Compat_Run(Lst targs) /* List of target nodes to re-create */ { - char *cp; /* Pointer to string of shell meta-characters */ - GNode *gn = NULL;/* Current root target */ - int errors; /* Number of targets not remade due to errors */ + char *cp; /* Pointer to string of shell meta-characters */ + GNode *gn = NULL; /* Current root target */ + int errors; /* Number of targets not remade due to errors */ signal(SIGINT, CompatInterrupt); signal(SIGTERM, CompatInterrupt); |