* readline.c (rl_complete_internal): Cast alloca to (char *) to
authorStu Grossman <grossman@cygnus>
Wed, 30 Sep 1992 20:00:22 +0000 (20:00 +0000)
committerStu Grossman <grossman@cygnus>
Wed, 30 Sep 1992 20:00:22 +0000 (20:00 +0000)
avoid warning.

readline/ChangeLog
readline/readline.c

index e766445..5eada80 100644 (file)
@@ -1,3 +1,8 @@
+Wed Sep 30 12:58:57 1992  Stu Grossman  (grossman at cygnus.com)
+
+       * readline.c (rl_complete_internal):  Cast alloca to (char *) to
+       avoid warning.
+
 Fri Sep 25 12:45:05 1992  Stu Grossman  (grossman at cygnus.com)
 
        * readline.c (clear_to_eol, rl_generic_bind):  Make static.
index 35bae45..b888f30 100644 (file)
@@ -3884,7 +3884,7 @@ rl_complete_internal (what_to_do)
                      /* Found an embedded word break character in a potential
                         match, so need to prepend a quote character if we are
                         replacing the completion string. */
-                     replacement = alloca (strlen (matches[0]) + 2);
+                     replacement = (char *)alloca (strlen (matches[0]) + 2);
                      quote_char = *rl_completer_quote_characters;
                      *replacement = quote_char;
                      strcpy (replacement + 1, matches[0]);