Apply some const
authorVolker Lendecke <vlendec@samba.org>
Mon, 11 Aug 2003 19:11:43 +0000 (19:11 +0000)
committerVolker Lendecke <vlendec@samba.org>
Mon, 11 Aug 2003 19:11:43 +0000 (19:11 +0000)
(This used to be commit 502b45b55d7ab1c32c9dbc3301f025b2eec620a4)

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))) {