diff options
author | harti <harti@FreeBSD.org> | 2005-02-04 16:53:35 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-02-04 16:53:35 +0000 |
commit | 43632a424ac22e5f43ac97b685dc24cdf1dc3af4 (patch) | |
tree | 2c66ff9eaf38e42d602b2b3bfd83cc24b30e4327 /usr.bin/make/for.c | |
parent | 44af3ae9764173adf195a782e9a44aba443970bc (diff) | |
download | FreeBSD-src-43632a424ac22e5f43ac97b685dc24cdf1dc3af4.zip FreeBSD-src-43632a424ac22e5f43ac97b685dc24cdf1dc3af4.tar.gz |
Where the returned line length from Buf_GetAll is not used just pass
a NULL to the function. Delete the now unused local variables.
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 c34ab65..2c0ec05 100644 --- a/usr.bin/make/for.c +++ b/usr.bin/make/for.c @@ -253,11 +253,10 @@ ForExec(void *namep, void *argp) { char *name = namep; For *arg = argp; - size_t len; Var_Set(arg->var, name, VAR_GLOBAL); DEBUGF(FOR, ("--- %s = %s\n", arg->var, name)); - Parse_FromString(Var_Subst(arg->var, (char *)Buf_GetAll(arg->buf, &len), + Parse_FromString(Var_Subst(arg->var, (char *)Buf_GetAll(arg->buf, NULL), VAR_GLOBAL, FALSE), arg->lineno); Var_Delete(arg->var, VAR_GLOBAL); |