File: 030_fix-compiler-error.patch

package info (click to toggle)
devtodo 0.1.20%2Bgit20200830.0ad52b0-4
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 968 kB
  • sloc: ansic: 5,307; cpp: 3,908; perl: 112; sh: 106; makefile: 45; csh: 2
file content (23 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: fix compiler error due to patch 020*
Author: Carlos Henrique Lima Melara <charlesmelara@outlook.com>
Forwarded: https://github.com/alecthomas/devtodo/pull/6
Last-Update: 2022-11-09

---
 src/support.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/support.cc b/src/support.cc
index 2e1db56..46f52fa 100644
--- a/src/support.cc
+++ b/src/support.cc
@@ -734,8 +734,7 @@ static int init_rl() {
 string readText(string const &prompt, string existing) {
 string out;
 
-	rl_startup_hook = (int(*)(const char*, int))init_rl;
-
+	rl_startup_hook = (int(*)())init_rl;
 	rl_buffer = &existing;
 char const *tmp = readline(const_cast<char*>(prompt.c_str()));
 	if (tmp) out = tmp;