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 38 39 40 41 42 43 44 45 46 47
|
Description: FTBFS fix, replace Function with int (*)(void)
Author: Maximiliano Curia <maxy@debian.org>
Bug: http://bugs.debian.org/741779
Forwarded: no
Last-Update: 2014-04-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: pal/src/manage.c
===================================================================
--- pal.orig/src/manage.c 2014-04-25 19:56:03.242689939 +0200
+++ pal/src/manage.c 2014-04-25 20:03:50.235382801 +0200
@@ -403,7 +403,7 @@
rl_initialize(); /* Initialise readline so we can fiddle stuff */
rl_already_prompted = 1;
rl_redisplay_function = pal_rl_ncurses_hack;
- rl_pre_input_hook = (Function*) pal_rl_ncurses_hack;
+ rl_pre_input_hook = pal_rl_ncurses_ihack;
/* initialize curses */
Index: pal/src/rl.c
===================================================================
--- pal.orig/src/rl.c 2014-04-25 20:02:59.173999681 +0200
+++ pal/src/rl.c 2014-04-25 20:03:17.606499242 +0200
@@ -209,6 +209,12 @@
refresh();
}
+int pal_rl_ncurses_ihack(void)
+{
+ pal_rl_ncurses_hack;
+ return 0;
+}
+
gboolean pal_rl_get_y_n(const char* prompt)
{
gchar *s = NULL;
Index: pal/src/rl.h
===================================================================
--- pal.orig/src/rl.h 2014-04-25 20:02:51.901802596 +0200
+++ pal/src/rl.h 2014-04-25 20:03:12.590363056 +0200
@@ -41,4 +41,5 @@
void pal_rl_completions_output(char **matches, int num_matches, int max_length );
PalEvent* pal_rl_get_event(GDate** d, gboolean allow_global);
void pal_rl_ncurses_hack(void);
+int pal_rl_ncurses_ihack(void);
#endif
|