summaryrefslogtreecommitdiff
path: root/net/scli/patches/patch-scli_scli.c
blob: a0425dbf99d2c09b8c4df786aa3577b16bbc3228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-scli_scli.c,v 1.1 2014/04/21 18:13:57 joerg Exp $

--- scli/scli.c.orig	2014-04-20 18:56:10.000000000 +0000
+++ scli/scli.c
@@ -216,7 +216,7 @@ generator(char const *text, int state)
  */
 
 static char**
-completion(char *text, int start, int end)
+completion(const char *text, int start, int end)
 {
     char **matches;
 
@@ -262,7 +262,7 @@ readline_init()
     rl_readline_name = "scli";
 
     /* Tell the completer that we want a crack first. */
-    rl_attempted_completion_function = (CPPFunction *) completion;
+    rl_attempted_completion_function = completion;
 }
 
 /*