diff options
author | harti <harti@FreeBSD.org> | 2005-03-22 07:50:40 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-03-22 07:50:40 +0000 |
commit | 874c97e5d4e537574d18aafebeeb75aa669b938a (patch) | |
tree | e67abd68093686b188fd6b2a5f6a52f6876c065a /usr.bin/make/for.c | |
parent | 091cf2f2956bcbd83353d9fb417db1c57d72f4d7 (diff) | |
download | FreeBSD-src-874c97e5d4e537574d18aafebeeb75aa669b938a.zip FreeBSD-src-874c97e5d4e537574d18aafebeeb75aa669b938a.tar.gz |
Simplify buffer access by using Buf_Data() and Buf_Peel() where
appropriate.
Patch: 7.147-7.151
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/for.c')
-rw-r--r-- | usr.bin/make/for.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/for.c b/usr.bin/make/for.c index 6cc46f2..93d9788 100644 --- a/usr.bin/make/for.c +++ b/usr.bin/make/for.c @@ -273,7 +273,7 @@ For_Run(int lineno) Var_Set(var, val, VAR_GLOBAL); DEBUGF(FOR, ("--- %s = %s\n", var, val)); - str = Buf_Peel(Var_Subst(var, (char *)Buf_GetAll(buf, NULL), + str = Buf_Peel(Var_Subst(var, Buf_Data(buf), VAR_GLOBAL, FALSE)); Parse_FromString(str, lineno); |