diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2014-03-03 10:40:08 -0300 |
---|---|---|
committer | Phillip Susi <psusi@ubuntu.com> | 2014-03-05 20:44:57 -0500 |
commit | cc382c3753e1b430c00df46f0937b74db36ccb8a (patch) | |
tree | bf66cc8933ca547d44f686710eb2d4dfda892b58 /parted/ui.c | |
parent | 026736e9fed89ef00e6e6e84c7e422639ac2715c (diff) | |
download | parted-cc382c3753e1b430c00df46f0937b74db36ccb8a.tar.gz |
ui: switch to new-style readline typedef
The CPPFunction typedef (among others) have been deprecated in favour of
specific prototyped typedefs since readline 4.2 (circa 2001).
It's been working since because compatibility typedefs have been in
place until they where removed in the recent readline 6.3 release.
Switch to the new style to avoid build breakage.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Diffstat (limited to 'parted/ui.c')
-rw-r--r-- | parted/ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parted/ui.c b/parted/ui.c index 786deed..b33f6fc 100644 --- a/parted/ui.c +++ b/parted/ui.c @@ -1470,7 +1470,7 @@ init_readline (void) #ifdef HAVE_LIBREADLINE if (!opt_script_mode) { rl_initialize (); - rl_attempted_completion_function = (CPPFunction*) complete_function; + rl_attempted_completion_function = (rl_completion_func_t *) complete_function; readline_state.in_readline = 0; } #endif |