From 21a07813ecb6d52e631980a3874beb9070b358ec Mon Sep 17 00:00:00 2001 From: jmallett Date: Sat, 28 Sep 2002 23:35:07 +0000 Subject: 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 --- usr.bin/make/make.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/make/make.c') 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); } } -- cgit v1.1