File: readline.patch

package info (click to toggle)
mailutils 1%3A3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 31,424 kB
  • ctags: 17,698
  • sloc: ansic: 165,737; sh: 77,655; yacc: 6,304; cpp: 3,827; makefile: 3,019; lex: 2,053; python: 1,652; exp: 1,272; lisp: 782; awk: 200; sed: 31
file content (28 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Update for readline API changes
Author: Sebastian Ramacher <sramacher@debian.org>
Bug-Debian: http://bugs.debian.org/741838
Last-Update: 2014-04-25

--- mailutils-2.99.98.orig/mail/mailline.c
+++ mailutils-2.99.98/mail/mailline.c
@@ -93,7 +93,7 @@ ml_readline_init ()
 
 #ifdef WITH_READLINE
   rl_readline_name = "mail";
-  rl_attempted_completion_function = (CPPFunction*)ml_command_completion;
+  rl_attempted_completion_function = (rl_completion_func_t*)ml_command_completion;
   rl_getc_function = ml_getc;
 #endif
 #ifdef HAVE_SIGACTION

--- mailutils-2.99.98.orig/mu/shell.c
+++ mailutils-2.99.98/mu/shell.c
@@ -336,7 +336,7 @@ mutool_initialize_readline (const char *
 {
   /* Allow conditional parsing of the ~/.inputrc file. */
   rl_readline_name = (char *) name;
-  rl_attempted_completion_function = (CPPFunction *) shell_completion;
+  rl_attempted_completion_function = (rl_completion_func_t *) shell_completion;
   rl_getc_function = _shell_getc;
   read_history (get_history_file_name ());
 }