Commit cfa1b43b cfa1b43b53838f95427bcb80e3323d37dc78d99a by Sergey Poznyakoff

Changed declaration of ml_command_generator().

(ml_command_completion): use rl_completion_matches(). Patch
provided by John R. Daily.
1 parent 49e7de3a
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 #include "mail.h" 18 #include "mail.h"
19 19
20 static char **ml_command_completion __P((char *cmd, int start, int end)); 20 static char **ml_command_completion __P((char *cmd, int start, int end));
21 static char *ml_command_generator __P((char *text, int state)); 21 static char *ml_command_generator __P((const char *text, int state));
22 22
23 static volatile int _interrupted; 23 static volatile int _interrupted;
24 24
...@@ -218,7 +218,7 @@ ml_command_completion (char *cmd, int start, int end) ...@@ -218,7 +218,7 @@ ml_command_completion (char *cmd, int start, int end)
218 { 218 {
219 (void)end; 219 (void)end;
220 if (start == 0) 220 if (start == 0)
221 return completion_matches (cmd, ml_command_generator); 221 return rl_completion_matches (cmd, ml_command_generator);
222 return NULL; 222 return NULL;
223 } 223 }
224 224
...@@ -226,7 +226,7 @@ ml_command_completion (char *cmd, int start, int end) ...@@ -226,7 +226,7 @@ ml_command_completion (char *cmd, int start, int end)
226 * more readline 226 * more readline
227 */ 227 */
228 char * 228 char *
229 ml_command_generator (char *text, int state) 229 ml_command_generator (const char *text, int state)
230 { 230 {
231 static int i, len; 231 static int i, len;
232 const char *name; 232 const char *name;
......