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 29 30 31 32 33 34 35 36 37
|
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1096419
--- cdcd-0.6.6.orig/cmd_cdcd.c
+++ cdcd-0.6.6/cmd_cdcd.c
@@ -1279,7 +1279,7 @@ cdcd_command_matcher (const char *text,
void
cmd_cdcd_mainloop ()
{
- rl_attempted_completion_function = (CPPFunction *) cdcd_completion;
+ rl_attempted_completion_function = cdcd_completion;
cmd_mainloop (&cdcd_command_matcher, "cdcd> ", cmds);
}
--- cdcd-0.6.6.orig/cmdline.c
+++ cdcd-0.6.6/cmdline.c
@@ -587,7 +587,7 @@ trackname_matcher (const char *text, int
}
char **
-cdcd_completion (char *text, int start, int end)
+cdcd_completion (const char *text, int start, int end)
{
char **matches = NULL;
--- cdcd-0.6.6.orig/cmdline.h
+++ cdcd-0.6.6/cmdline.h
@@ -61,7 +61,7 @@ void init_cmdline (void);
/* FIXME: this function is hell */
void get_input_text (char *buffer, char *prompt, int len);
char *trackname_matcher (const char *text, int state);
-char **cdcd_completion (char *text, int start, int end);
+char **cdcd_completion (const char *text, int start, int end);
int read_trackname (char *s, int *ret,
struct disc_data *data, struct disc_info *disc);
|