diff options
author | harti <harti@FreeBSD.org> | 2005-05-10 12:02:15 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-05-10 12:02:15 +0000 |
commit | e571f8f77c821803b7c8084feb8283f6dd32db1e (patch) | |
tree | 3aafffb2115065394ec59393e49db455b31b65ea /usr.bin/make/for.c | |
parent | aac19b11ef29f0b93bf97f28d1096f4f86dcb44e (diff) | |
download | FreeBSD-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/for.c')
-rw-r--r-- | usr.bin/make/for.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/make/for.c b/usr.bin/make/for.c index f0e0b4e..15372b6 100644 --- a/usr.bin/make/for.c +++ b/usr.bin/make/for.c @@ -271,8 +271,7 @@ For_Run(int lineno) Var_Set(var, val, VAR_GLOBAL); DEBUGF(FOR, ("--- %s = %s\n", var, val)); - str = Buf_Peel(Var_SubstOnly(var, Buf_Data(buf), - VAR_GLOBAL, FALSE)); + str = Buf_Peel(Var_SubstOnly(var, Buf_Data(buf), FALSE)); Parse_FromString(str, lineno); Var_Delete(var, VAR_GLOBAL); |