summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2004-11-22 15:45:57 +0000
committerHartmut Brandt <harti@FreeBSD.org>2004-11-22 15:45:57 +0000
commitd96b4f01304e7ccf3b0b9a6ec1d6d58fe15cf6ca (patch)
treee04bed41e2327bcd464c23ac71290d614e2d263c
parent05127e036e9443eaf38e1563701f1cdd9767d80c (diff)
Notes
-rw-r--r--usr.bin/make/job.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index 8515e0092f3d..0b86bb0c3d2c 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -205,15 +205,6 @@ static Shell shells[] = {
TRUE, "set -e", "set +e",
"v", "e",
},
- /*
- * UNKNOWN.
- */
-{
- (char *) 0,
- FALSE, (char *) 0, (char *) 0, (char *) 0, 0,
- FALSE, (char *) 0, (char *) 0,
- (char *) 0, (char *) 0,
-}
};
static Shell *commandShell = &shells[DEFSHELL];/* this is the shell to
* which we pass all
@@ -2345,7 +2336,7 @@ JobMatchShell(char *name)
match = NULL;
- for (sh = shells; sh->name != NULL; sh++) {
+ for (sh = shells; sh < shells + sizeof(shells) / sizeof(shells[0]); sh++) {
for (cp1 = eoname - strlen(sh->name), cp2 = sh->name;
*cp1 != '\0' && *cp1 == *cp2;
cp1++, cp2++) {