diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-10-09 01:51:00 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-10-09 01:51:00 +0000 |
commit | 5788a2c1bb03c058e07cfab411f9c4a33911a10c (patch) | |
tree | 129bd23ca9c41dd9369b88407a388de17bea9cab /usr.bin/make | |
parent | 731a2cb152c369aa5108680f230b5610ba18991b (diff) | |
download | FreeBSD-src-5788a2c1bb03c058e07cfab411f9c4a33911a10c.zip FreeBSD-src-5788a2c1bb03c058e07cfab411f9c4a33911a10c.tar.gz |
Remove unused local-locals, where upper-level locals may safely be used.
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 9e3895b..1093f1d 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -799,7 +799,7 @@ main(argc, argv) * <directory>:<directory>:<directory>... */ if (Var_Exists("VPATH", VAR_CMD)) { - char *vpath, *path1, *cp1, savec; + char *vpath, savec; /* * GCC stores string constants in read-only memory, but * Var_Subst will want to write this thing, so store it @@ -808,18 +808,18 @@ main(argc, argv) static char VPATH[] = "${VPATH}"; vpath = Var_Subst(NULL, VPATH, VAR_CMD, FALSE); - path1 = vpath; + path = vpath; do { /* skip to end of directory */ - for (cp1 = path1; *cp1 != ':' && *cp1 != '\0'; cp1++) + for (cp = path; *cp != ':' && *cp != '\0'; cp++) continue; /* Save terminator character so know when to stop */ - savec = *cp1; - *cp1 = '\0'; + savec = *cp; + *cp = '\0'; /* Add directory to search path */ - Dir_AddDir(dirSearchPath, path1); - *cp1 = savec; - path1 = cp1 + 1; + Dir_AddDir(dirSearchPath, path); + *cp = savec; + path = cp + 1; } while (savec == ':'); (void)free(vpath); } |