summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/var.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-05-10 12:02:15 +0000
committerharti <harti@FreeBSD.org>2005-05-10 12:02:15 +0000
commite571f8f77c821803b7c8084feb8283f6dd32db1e (patch)
tree3aafffb2115065394ec59393e49db455b31b65ea /usr.bin/make/var.c
parentaac19b11ef29f0b93bf97f28d1096f4f86dcb44e (diff)
downloadFreeBSD-src-e571f8f77c821803b7c8084feb8283f6dd32db1e.zip
FreeBSD-src-e571f8f77c821803b7c8084feb8283f6dd32db1e.tar.gz
Var_SubstOnly() is only used to subsitute a variable from the global
context (and only in one place to substitute the .for variable). Therefor there is no need to pass the context as a parameter. Patch: 7.197 Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/var.c')
-rw-r--r--usr.bin/make/var.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c
index a23069d..4873af2 100644
--- a/usr.bin/make/var.c
+++ b/usr.bin/make/var.c
@@ -2380,8 +2380,9 @@ Var_Subst(const char *str, GNode *ctxt, Boolean err)
* None. The old string must be freed by the caller
*/
Buffer *
-Var_SubstOnly(const char *var, const char *str, GNode *ctxt, Boolean err)
+Var_SubstOnly(const char *var, const char *str, Boolean err)
{
+ GNode *ctxt = VAR_GLOBAL;
Boolean errorReported;
Buffer *buf; /* Buffer for forming things */
OpenPOWER on IntegriCloud