diff options
author | joerg <joerg@pkgsrc.org> | 2015-06-10 14:57:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-06-10 14:57:52 +0000 |
commit | 48dde0874843d83152b4ca9c5eb1c9eeb5e448ca (patch) | |
tree | 12c677f422af3711d74a3d75387265618c048812 /devel/elf | |
parent | d8b5ad7726cd4290fabe6b8dfb119eb11c50cfc3 (diff) | |
download | pkgsrc-48dde0874843d83152b4ca9c5eb1c9eeb5e448ca.tar.gz |
Drop unnecessary casts after fixing constness of the prototypes.
Diffstat (limited to 'devel/elf')
-rw-r--r-- | devel/elf/distinfo | 4 | ||||
-rw-r--r-- | devel/elf/patches/patch-include_command.h | 13 | ||||
-rw-r--r-- | devel/elf/patches/patch-src_main.c | 26 |
3 files changed, 42 insertions, 1 deletions
diff --git a/devel/elf/distinfo b/devel/elf/distinfo index 8625ebd8d3c..9babe170146 100644 --- a/devel/elf/distinfo +++ b/devel/elf/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2013/10/16 12:32:34 roy Exp $ +$NetBSD: distinfo,v 1.6 2015/06/10 14:57:52 joerg Exp $ SHA1 (elf-0.5.3.tar.gz) = 7cf3ea7d098b239c7b70405a2641dfcd55a49c37 RMD160 (elf-0.5.3.tar.gz) = f3198b4183c9bd6d288013847e525c21c972afff @@ -6,3 +6,5 @@ Size (elf-0.5.3.tar.gz) = 43552 bytes SHA1 (patch-aa) = a8e3d3e981e14fc3b3d51d7a9113f8a75225f2dc SHA1 (patch-configure) = ece37ad216857d56b6e4e67d593871c798626f75 SHA1 (patch-configure.in) = 0347b9e69632e12018e40e50c66d8a141346b2a3 +SHA1 (patch-include_command.h) = 1797fa9010bbc04970c2a36a71f0c2ceb7085474 +SHA1 (patch-src_main.c) = a52da4f884bb62d62ce95af5ed9ad81acaeee7bc 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){ |