Gustavo Zacarias | 8d89fd2 | 2014-03-02 01:21:11 -0300 | [diff] [blame] | 1 | The CPPFunction typedef (among others) have been deprecated in favour of |
| 2 | specific prototyped typedefs since readline 4.2. |
| 3 | It's been working since because compatibility typedefs have been |
| 4 | in place until they were removed in readline 6.3. |
| 5 | |
| 6 | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> |
| 7 | |
| 8 | diff -Nura parted-3.1.orig/parted/ui.c parted-3.1/parted/ui.c |
| 9 | --- parted-3.1.orig/parted/ui.c 2014-03-01 16:11:41.970827134 -0300 |
| 10 | +++ parted-3.1/parted/ui.c 2014-03-01 16:11:55.540259786 -0300 |
| 11 | @@ -1474,7 +1474,7 @@ |
| 12 | #ifdef HAVE_LIBREADLINE |
| 13 | if (!opt_script_mode) { |
| 14 | rl_initialize (); |
| 15 | - rl_attempted_completion_function = (CPPFunction*) complete_function; |
| 16 | + rl_attempted_completion_function = (rl_completion_func_t *) complete_function; |
| 17 | readline_state.in_readline = 0; |
| 18 | } |
| 19 | #endif |