summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-02-06 22:36:43 +0000
committerRoland McGrath <roland@redhat.com>1995-02-06 22:36:43 +0000
commitf3cfccf0b81887b70c3c9d261c0c6634659e08fd (patch)
tree59d8442e0ace822e8c3608fa63f5fe3fcbec4f54
parent016e1beef551bbed0c7e16cac79b18a13611129c (diff)
downloadgunmake-f3cfccf0b81887b70c3c9d261c0c6634659e08fd.tar.gz
Cast results of `alloca' to `char *' in two places.
-rw-r--r--expand.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/expand.c b/expand.c
index d2d798e..7348fb2 100644
--- a/expand.c
+++ b/expand.c
@@ -292,7 +292,8 @@ variable_expand (line)
}
else
{
- pattern = alloca (subst_end - subst_beg + 1);
+ pattern = (char *) alloca (subst_end - subst_beg
+ + 1);
bcopy (subst_beg, pattern, subst_end - subst_beg);
pattern[subst_end - subst_beg] = '\0';
}
@@ -307,8 +308,9 @@ variable_expand (line)
}
else
{
- replace = alloca (replace_end - replace_beg
- + 1);
+ replace = (char *) alloca (replace_end
+ - replace_beg
+ + 1);
bcopy (replace_beg, replace,
replace_end - replace_beg);
replace[replace_end - replace_beg] = '\0';