sync 3.0 into HEAD for the last time
[kai/samba.git] / source3 / lib / readline.c
index ceb02ef749c061f932fcc62e005e65d5e7fbabed..78b99fd7fb03168fe78c71d1e4d8feea61e6d1cb 100644 (file)
@@ -51,7 +51,7 @@
 ****************************************************************************/
 
 static char *smb_readline_replacement(char *prompt, void (*callback)(void), 
-                               char **(completion_fn)(char *text, int start, int end))
+                               char **(completion_fn)(const char *text, int start, int end))
 {
        fd_set fds;
        static pstring line;
@@ -83,7 +83,7 @@ static char *smb_readline_replacement(char *prompt, void (*callback)(void),
 ****************************************************************************/
 
 char *smb_readline(char *prompt, void (*callback)(void), 
-                  char **(completion_fn)(char *text, int start, int end))
+                  char **(completion_fn)(const char *text, int start, int end))
 {
 #if HAVE_LIBREADLINE
        if (isatty(x_fileno(x_stdin))) {