* 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 e7664451ce12e0c149d8fa9b8198202f8cad9946..5eada8008e257bea227e29e51c80d686d31de50f 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 35bae45c16b1d4f4034e71503d2be8e4bbb2765c..b888f30a085bcc0594cdc42bab835082a8721bff 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]);
This page took 0.027924 seconds and 4 git commands to generate.