Cast results of `alloca' to `char *' in two places.
authorRoland McGrath <roland@redhat.com>
Mon, 6 Feb 1995 22:36:43 +0000 (22:36 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 6 Feb 1995 22:36:43 +0000 (22:36 +0000)
expand.c

index d2d798e32b49d609e34ac8f324e5dd4c4f1f52cb..7348fb261763ddc0bd19c6462f5442b886de2ecf 100644 (file)
--- 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';