diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-09-28 23:35:07 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-09-28 23:35:07 +0000 |
commit | 21a07813ecb6d52e631980a3874beb9070b358ec (patch) | |
tree | 10a7fe1fae5804f47e1e5cc182a0cc6dc1eb7138 /usr.bin/make/make.c | |
parent | edeb25e503d73463726076b782d5243ae2ad3d53 (diff) | |
download | FreeBSD-src-21a07813ecb6d52e631980a3874beb9070b358ec.zip FreeBSD-src-21a07813ecb6d52e631980a3874beb9070b358ec.tar.gz |
Make make(1) WARNS=6 clean except for const issues. This mostly involves
renaming variables to not shadow libc functions or greater scope locals. Kinda
makes one wonder if the extern ones weren't meant in some of these places :)
The only thing I'd still like to do WRT this is possibly combine rstat and
status in compat.c -- that should be fine, as I do not think the codepaths
will want both around at once.
Sponsored by: Bright Path Solutions
Diffstat (limited to 'usr.bin/make/make.c')
-rw-r--r-- | usr.bin/make/make.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c index 50d48a7..a547d8f 100644 --- a/usr.bin/make/make.c +++ b/usr.bin/make/make.c @@ -511,8 +511,8 @@ Make_Update (cgn) * of this node. */ if (Lst_Open (cgn->iParents) == SUCCESS) { - char *p1; - char *cpref = Var_Value(PREFIX, cgn, &p1); + char *ptr; + char *cpref = Var_Value(PREFIX, cgn, &ptr); while ((ln = Lst_Next (cgn->iParents)) != NULL) { pgn = (GNode *)Lst_Datum (ln); @@ -521,7 +521,7 @@ Make_Update (cgn) Var_Set (PREFIX, cpref, pgn); } } - efree(p1); + efree(ptr); Lst_Close (cgn->iParents); } } |