--- a/textio/txInput.c +++ b/textio/txInput.c @@ -562,7 +562,7 @@ magic_completion_function( int start, int end) { - CPFunction *completion_func = (CPFunction *)NULL; + rl_compentry_func_t *completion_func = NULL; char **matches, **tokens; char *line = strdup(rl_line_buffer); int i; --- a/textio/txMain.c +++ b/textio/txMain.c @@ -123,7 +123,7 @@ TxInitReadline(void) /* removed "=" and "(" because styles contain them */ rl_completer_word_break_characters = " \t\n\"\\'`@$><;|&{"; - rl_attempted_completion_function = (CPPFunction *)magic_completion_function; + rl_attempted_completion_function = (rl_completion_func_t *)magic_completion_function; HashInit(&cellname_hash, 128, HT_STRINGKEYS); i = j = 0;