]> granicus.if.org Git - python/commitdiff
SF #1703270, add missing declaration in readline.c to avoid compiler warning.
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 19 Apr 2007 05:52:37 +0000 (05:52 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 19 Apr 2007 05:52:37 +0000 (05:52 +0000)
Modules/readline.c

index 853874be2506e78b65bcab6a970542a2d9dc80ad..fd800ffa1aa2d046bef6fcbd52728ac31692347b 100644 (file)
@@ -34,6 +34,8 @@
 #ifdef HAVE_RL_COMPLETION_MATCHES
 #define completion_matches(x, y) \
        rl_completion_matches((x), ((rl_compentry_func_t *)(y)))
+#else
+extern char **completion_matches(char *, rl_compentry_func_t *);
 #endif
 
 
@@ -632,7 +634,7 @@ on_pre_input_hook(void)
 /* C function to call the Python completer. */
 
 static char *
-on_completion(char *text, int state)
+on_completion(const char *text, int state)
 {
        char *result = NULL;
        if (completer != NULL) {