diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:50:40 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:50:40 +0000 |
commit | 9811dd20491d71b86c6029003d05fb8022093320 (patch) | |
tree | b18ba95828e2e0cefe707d3ec9905bd2c4a5ca9c /usr.bin/make/arch.c | |
parent | 3062cd8b277b2f91c96ada9b87815608c0fa2853 (diff) |
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.bin/make/arch.c')
-rw-r--r-- | usr.bin/make/arch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c index 01bd80600d4..1975d1a4583 100644 --- a/usr.bin/make/arch.c +++ b/usr.bin/make/arch.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: arch.c,v 1.55 2006/01/20 23:10:19 espie Exp $ */ +/* $OpenBSD: arch.c,v 1.56 2007/03/20 03:50:39 tedu Exp $ */ /* $NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $ */ /* @@ -261,7 +261,7 @@ Arch_ParseArchive(char **linePtr, /* Pointer to start of specification */ * a close paren). */ bool doSubst = false; /* true if need to substitute in memberName */ - while (*cp != '\0' && *cp != ')' && isspace(*cp)) + while (isspace(*cp)) cp++; memberName = cp; while (*cp != '\0' && *cp != ')' && !isspace(*cp)) { @@ -383,7 +383,7 @@ Arch_ParseArchive(char **linePtr, /* Pointer to start of specification */ * entrance to the loop, cp is guaranteed to point at a ')') */ do { cp++; - } while (*cp != '\0' && isspace(*cp)); + } while (isspace(*cp)); *linePtr = cp; return true; |