diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-12-06 22:28:45 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-12-06 22:28:45 +0000 |
commit | 8ad9f5a38304f6f40fb7cc771483636d4dcbb727 (patch) | |
tree | 7136d16b36ccc997b51e9c3a966231f04205b0bd /usr.bin/make/cond.c | |
parent | 7bc316c2e1da70c08f3d2dae2cde9c50dc3bc7f7 (diff) |
Extra parameter no longer needed, ditch.
Diffstat (limited to 'usr.bin/make/cond.c')
-rw-r--r-- | usr.bin/make/cond.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/make/cond.c b/usr.bin/make/cond.c index 54d2e7a132f..436ab50c8f0 100644 --- a/usr.bin/make/cond.c +++ b/usr.bin/make/cond.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cond.c,v 1.5 1999/12/06 22:24:31 espie Exp $ */ +/* $OpenBSD: cond.c,v 1.6 1999/12/06 22:28:44 espie Exp $ */ /* $NetBSD: cond.c,v 1.7 1996/11/06 17:59:02 christos Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static char sccsid[] = "@(#)cond.c 8.2 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$OpenBSD: cond.c,v 1.5 1999/12/06 22:24:31 espie Exp $"; +static char rcsid[] = "$OpenBSD: cond.c,v 1.6 1999/12/06 22:28:44 espie Exp $"; #endif #endif /* not lint */ @@ -286,16 +286,13 @@ CondDoDefined(argLen, arg) char *arg; { char savec = arg[argLen]; - char *p1; Boolean result; arg[argLen] = '\0'; - if (Var_Value (arg, VAR_CMD, &p1) != (char *)NULL) { + if (Var_Value(arg, VAR_CMD) != NULL) result = TRUE; - } else { + else result = FALSE; - } - efree(p1); arg[argLen] = savec; return (result); } |