Package: refdb / 1.0.2-3

bug741839.patch Patch series | download
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Description: Fix compilation
 Also incorporate changes from:
 https://bugs.debian.org/759855#10
Author: Mathieu Malaterre <malat@debian.org>
Bug-Debian: http://bugs.debian.org/741839

Index: refdb-1.0.2/src/readln.c
===================================================================
--- refdb-1.0.2.orig/src/readln.c	2013-12-22 01:17:45.000000000 +0100
+++ refdb-1.0.2/src/readln.c	2014-09-01 17:51:16.813428867 +0200
@@ -92,7 +92,7 @@
 /*    rl_readline_name = "refdb-admin"; */
 
   /* Tell the completer that we want a crack first. */
-  rl_attempted_completion_function = (CPPFunction *)refdb_completion;
+  rl_attempted_completion_function = (rl_completion_func_t *)refdb_completion;
 }
 
 /* Attempt to complete on the contents of TEXT.  START and END bound the
Index: refdb-1.0.2/src/readln.h
===================================================================
--- refdb-1.0.2.orig/src/readln.h	2014-09-01 17:49:26.000000000 +0200
+++ refdb-1.0.2/src/readln.h	2014-09-01 17:51:16.813428867 +0200
@@ -24,7 +24,8 @@
 
 typedef struct {
   char *name;			/* User printable name of the function. */
-  Function *func;		/* Function to call to do the job. */
+  /* Function *func;	 */	/* Function to call to do the job. */
+  rl_icpfunc_t *func;		/* Function to call to do the job. */
   char *doc;			/* Documentation for this function.  */
 } COMMAND;
 
Index: refdb-1.0.2/src/refdba.c
===================================================================
--- refdb-1.0.2.orig/src/refdba.c	2013-12-22 01:17:46.000000000 +0100
+++ refdb-1.0.2/src/refdba.c	2014-09-01 17:51:16.813428867 +0200
@@ -86,7 +86,7 @@
   { "set", com_setvalue, "Set new value of config variable" },
   { "verbose", com_verbose, "Toggle verbose mode" },
   { "viewstat", com_viewstat, "View statistics" },
-  { (char *)NULL, (Function *)NULL, (char *)NULL }
+  { (char *)NULL, (rl_icpfunc_t *)NULL, (char *)NULL }
 };
 
 /* Globals */
@@ -135,7 +135,7 @@
 #endif /* READLINE41 */
 
 char readline_name[] = "refdba";
-CPPFunction* rl_attempted_completion_function; /* ptr to completer */
+rl_completion_func_t *rl_attempted_completion_function; /* ptr to completer */
 int n_refdb_timeout;
 int n_verbose = 0; /*+ do we want logorrhoeic output? +*/
 
Index: refdb-1.0.2/src/refdbc.c
===================================================================
--- refdb-1.0.2.orig/src/refdbc.c	2013-12-22 01:17:46.000000000 +0100
+++ refdb-1.0.2/src/refdbc.c	2014-09-01 17:51:16.817428862 +0200
@@ -100,7 +100,7 @@
   { "verbose", com_verbose, "Toggle verbose mode" },
   { "updatejo", com_updatejo, "Update journal name synonyms" },
   { "whichdb", com_whichdb, "Show info about current database" },
-  { (char *)NULL, (Function *)NULL, (char *)NULL }
+  { (char *)NULL, (rl_icpfunc_t *)NULL, (char *)NULL }
 };
 
 /* Globals */
@@ -172,7 +172,7 @@
 #endif /* READLINE41 */
 
 char readline_name[] = "refdbc";
-CPPFunction* rl_attempted_completion_function; /* ptr to completer */
+rl_completion_func_t *rl_attempted_completion_function; /* ptr to completer */
 
 int n_refdb_timeout;
 int n_verbose = 0; /*+ do we want logorrhoeic output? +*/