summaryrefslogtreecommitdiff
path: root/devel/elf/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-06-10 14:57:52 +0000
committerjoerg <joerg@pkgsrc.org>2015-06-10 14:57:52 +0000
commit48dde0874843d83152b4ca9c5eb1c9eeb5e448ca (patch)
tree12c677f422af3711d74a3d75387265618c048812 /devel/elf/patches
parentd8b5ad7726cd4290fabe6b8dfb119eb11c50cfc3 (diff)
downloadpkgsrc-48dde0874843d83152b4ca9c5eb1c9eeb5e448ca.tar.gz
Drop unnecessary casts after fixing constness of the prototypes.
Diffstat (limited to 'devel/elf/patches')
-rw-r--r--devel/elf/patches/patch-include_command.h13
-rw-r--r--devel/elf/patches/patch-src_main.c26
2 files changed, 39 insertions, 0 deletions
diff --git a/devel/elf/patches/patch-include_command.h b/devel/elf/patches/patch-include_command.h
new file mode 100644
index 00000000000..1b071d5a544
--- /dev/null
+++ b/devel/elf/patches/patch-include_command.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-include_command.h,v 1.1 2015/06/10 14:57:52 joerg Exp $
+
+--- include/command.h.orig 2015-06-09 23:23:54.000000000 +0000
++++ include/command.h
+@@ -10,6 +10,6 @@ char *commands[] = {
+ };
+
+ void initrl(void);
+-char **completion(char *, int, int);
+-char *match(char *, int);
++char **completion(const char *, int, int);
++char *match(const char *, int);
+ char **find_command(char *);
diff --git a/devel/elf/patches/patch-src_main.c b/devel/elf/patches/patch-src_main.c
new file mode 100644
index 00000000000..a770654472a
--- /dev/null
+++ b/devel/elf/patches/patch-src_main.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_main.c,v 1.1 2015/06/10 14:57:52 joerg Exp $
+
+--- src/main.c.orig 2015-06-09 23:23:22.000000000 +0000
++++ src/main.c
+@@ -594,18 +594,18 @@ char **find_command(char *name){
+
+
+ void initrl(void){
+- rl_attempted_completion_function=(CPPFunction *)completion;
++ rl_attempted_completion_function=completion;
+ }
+
+
+-char **completion(char *text, int start, int end){
++char **completion(const char *text, int start, int end){
+ char **matches=(char **)NULL;
+
+ if(!start) matches=(char **)completion_matches(text, match);
+ return matches;
+ }
+
+-char *match(char *text, int state){
++char *match(const char *text, int state){
+ static int i, len;
+
+ if(!state){